Change maxcarlson-20101227-iT7 by maxcarl...@friendly on 2010-12-27 10:14:29 PST
in /Users/maxcarlson/openlaszlo/trunk2/my-apps/components
for http://svn.lzxpatterns.com/components/trunk
Summary: Add 'selected' attribute to componentmodel, modularize list
Bugs Fixed: LPP-9502 - Add 'selected' attribute to componentmodel
Technical Reviewer: ptw
QA Reviewer: ffeng
Details: componentselector - Subclass selectionmanager, set to use 'selected'
setter.
selectable - Tiny mixin to allow styling in CSS - see house.lzx
lib/library - Add list/ to top-level includes
slider/library - Use styledtext instead of a discrete text instance in the
slider floater (for styling)
styleattributes - Move list of CSS-styleable attributes from components to this
mixin.
styledtext - Add class to allow styling of text used inside components.
keyevents - Move shared keyboard processing out of buttonevents
componentmodel - Add selected attribute and setter for use with
componentselector. Don't turn on clickable/focusable when not disabled.
basepanel - Include styleattributes mixin, move CSSable attributes to
styleattributes.
listitem - Move to list/listitem. Move selection logic to selectable. Include
selectable, styleattributes mixins.
combobox/library - Include list components. Improve focue and modality setup.
Also open for arrow keys. Disable clickable on the button. Delegate keyboard
events to the list to support keyboard navigation.
button/library - Use styledtext instead of a discrete text instance.
button/draw - Don't set alpha based on disabled.
list/library - Refactor list component from inside combobox floater, add
keyboard navigation.
demos/house - Move selection-color to basepanel selector. Explicitly style
styledtext and selectable classes. Set the opacity of disabled buttons to .5
Tests: Components now have a selected attribute, colors for text are now styled
via CSS, combobox supports keyboard navigation. Otherwise, demos/house runs
like before.
Files:
A lib/componentselector.lzx
A lib/selectable.lzx
M lib/library.lzx
M lib/slider/library.lzx
A lib/styleattributes.lzx
A lib/styledtext.lzx
A lib/keyevents.lzx
M lib/componentmodel.lzx
M lib/basepanel.lzx
D lib/listitem.lzx
M lib/combobox/library.lzx
M lib/button/library.lzx
M lib/button/draw.lzx
A lib/list
A lib/list/library.lzx
A + lib/list/listitem.lzx
M demos/house.lzx
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/maxcarlson-20101227-iT7.tar