org.itsnat.comp.list
Interface ItsNatFreeList

All Superinterfaces:
ItsNatComponent, ItsNatElementComponent, ItsNatFreeComponent, ItsNatList, ItsNatUserData
All Known Subinterfaces:
ItsNatFreeComboBox, ItsNatFreeListMultSel

public interface ItsNatFreeList
extends ItsNatList, ItsNatFreeComponent

Is the base interface of the free multiple selection lists and combo box components.

Almost a child DOM element must be present in the markup, this element is used as a pattern to create new list items and is removed because by default the data model is empty.

By default this component uses the default renderer and editor.

There is no default decoration of list item selection, selection model listeners may be used to decorate the list markup when its selection state changes.

Author:
Jose Maria Arranz Santamaria

Method Summary
 boolean isJoystickMode()
          Informs whether a joystick is enough to control the component (some kind of mouse, pointer or stylus not present or not necessary).
 void setJoystickMode(boolean value)
          Informs whether a joystick is enough to control the component (some kind of mouse, pointer or stylus not present or not necessary).
 
Methods inherited from interface org.itsnat.comp.list.ItsNatList
createDefaultListModel, getEditingIndex, getEditorActivatorEvent, getItsNatListCellEditor, getItsNatListCellRenderer, getItsNatListStructure, getItsNatListUI, getListModel, getSelectedIndex, indexOf, isEditing, isEditingEnabled, setEditingEnabled, setEditorActivatorEvent, setItsNatListCellEditor, setItsNatListCellRenderer, setListModel, setSelectedIndex, startEditingAt
 
Methods inherited from interface org.itsnat.comp.ItsNatElementComponent
getElement, getItsNatElementComponentUI
 
Methods inherited from interface org.itsnat.comp.ItsNatComponent
addEventListener, addEventListener, addEventListener, addEventListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, disableEventListener, disableEventListener, dispose, enableEventListener, enableEventListener, getArtifact, getArtifact, getItsNatComponentManager, getItsNatComponentUI, getItsNatDocument, getNode, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, isDisposed, isEnabled, registerArtifact, removeArtifact, removeEventListener, removeEventListener, removeEventListener, removeEventListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, setEnabled, setEventListenerParams, setEventListenerParams, setNode
 
Methods inherited from interface org.itsnat.core.ItsNatUserData
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
 

Method Detail

isJoystickMode

boolean isJoystickMode()
Informs whether a joystick is enough to control the component (some kind of mouse, pointer or stylus not present or not necessary).

If the component is in joystick mode, the "content element" of every list item has an event listener associated. By this way list items are "live" elements and can traversed using a joystick in mobile devices without a mouse, pointer or stylus.

Default value is defined by ItsNatDocument.isJoystickMode()

Returns:
true if joystick mode is on.
See Also:
setJoystickMode(boolean), ItsNatListStructure.getContentElement(ItsNatList, int, org.w3c.dom.Element)

setJoystickMode

void setJoystickMode(boolean value)
Informs whether a joystick is enough to control the component (some kind of mouse, pointer or stylus not present or not necessary).

Parameters:
value - true to enable joystick mode.
See Also:
isJoystickMode()


Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.