Java Doc for SList.java in  » Swing-Library » wings3 » org » wings » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » wings3 » org.wings 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wings.SComponent
      org.wings.SList

SList
public class SList extends SComponent implements Scrollable,LowLevelEventListener,ListDataListener(Code)
Allows the user to select one or more objects from a list. CAVEAT A list in a form has special implications to take care of: Problem with a form request is, that we should fire the selection change events not until the states of all components are consistent. Unfortunately we cannot avoid events before that entirely. Problem is, that we use Swing Models for selection and they don't know anything about asynchronous state change. They will fire their events just after we set a state. But inside a form we have to change many states of many components, all at once. And events should arise first, after we set the new state of all components. So as a trade-off we decided to use the setValueIsAdjusting in the ListSelectionModel as an indicator, if components are consistent. That is, if you get an SelectionEvent with getValueIsAdjusting true, you cannot be sure, that component states are consistent, so don't use that events. But you will get an event without isValueAdjusting. You can work with that event. If you want to avoid that problem, just use the selection events from the list itself, register your listener at SList rather than at the ListSelectionModel...
author:
   Holger Engels
author:
   Armin Haaf
See Also:   javax.swing.ListModel
See Also:   SDefaultListModel
See Also:   javax.swing.ListSelectionModel
See Also:   SListCellRenderer


Field Summary
final public static  StringDIR_LIST
     The type for an TO-DO list.
final public static  StringMENU_LIST
     The type for an menu-like list.
final public static  intMULTIPLE_INTERVAL_SELECTION
     Table selection model.
final public static  intMULTIPLE_SELECTION
     Table selection model.
final public static  intNO_SELECTION
     Table selection model.
final public static  StringORDERED_LIST
     The type for an ordered list.
final public static  String[]ORDER_TYPE_BIG_ALPHA
    
final public static  String[]ORDER_TYPE_BIG_ROMAN
    
final public static  String[]ORDER_TYPE_CIRCLE
    
final public static  String[]ORDER_TYPE_DISC
    
final public static  String[]ORDER_TYPE_NORMAL
    
final public static  String[]ORDER_TYPE_NUMBER
    
final public static  String[]ORDER_TYPE_SMALL_ALPHA
    
final public static  String[]ORDER_TYPE_SMALL_ROMAN
    
final public static  String[]ORDER_TYPE_SQUARE
    
final public static  SelectorSELECTOR_SELECTION
     The Selector for this component.
final public static  intSINGLE_INTERVAL_SELECTION
     Table selection model.
final public static  intSINGLE_SELECTION
     Table selection model.
final public static  StringUNORDERED_LIST
     The type for an unordered list.
protected  StringorderType
    
protected  intstart
    
protected  Stringtype
    
protected  Rectangleviewport
     Implementation of the Scrollable interface.

Constructor Summary
public  SList(ListModel dataModel)
     Construct a SList that displays the elements in the specified model.
public  SList(Object[] listData)
     Construct a SList that displays the elements in the specified array.
public  SList(List listData)
     Construct a SList that displays the elements in the specified Vector.
public  SList()
     Constructs a SList with an empty model.

Method Summary
public  voidaddListSelectionListener(ListSelectionListener listener)
     Add a listener to the list that's notified each time a change to the selection occurs.

If you want to receive immedate an event when the user clicks a new item on the client side you have to register additionally a Java script listener which triggers a form submit.

public  voidaddSelectionInterval(int anchor, int lead)
    
public  voidaddViewportChangeListener(SViewportChangeListener l)
     Adds the given SViewportChangeListener to the scrollable.
public  voidclearSelection()
    
public  voidcontentsChanged(javax.swing.event.ListDataEvent e)
    
protected  SListSelectionModelcreateSelectionModel()
     creates the default selection model.
public  voidfireFinalEvents()
    
public  voidfireIntermediateEvents()
    
protected  voidfireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting)
     This method notifies all ListSelectionListeners that the selection model has changed.
protected  voidfireViewportChanged(boolean horizontal)
     Notifies all listeners that have registered interest for notification on changes to this scrollable's viewport in the specified direction.
public  intgetAnchorSelectionIndex()
    
final public  SListCellRenderergetCellRenderer()
     Returns the cell renderer.
public  SCellRendererPanegetCellRendererPane()
    
public  StringgetDeselectionParameter(int index)
    
public  intgetLeadSelectionIndex()
    
public  ListSelectionListener[]getListSelectionListeners()
     Returns an array of all the ListSelectionListeners added to this JList with addListSelectionListener().
public  intgetMaxSelectionIndex()
    
public  intgetMinSelectionIndex()
    
public  ListModelgetModel()
     Returns the data model that holds the items.
public  StringgetOrderType()
    
public  RectanglegetScrollableViewportSize()
     The size of the component in respect to scrollable units.
public  intgetSelectedIndex()
     A convenience method that returns the first selected index.
public  int[]getSelectedIndices()
     Return an array of all of the selected indices.
public  ObjectgetSelectedValue()
     A convenience method that returns the first selected value or null, if nothing is selected.
public  Object[]getSelectedValues()
     Return the values of the selected cells.
public  ColorgetSelectionBackground()
     Return the background color.
public  SFontgetSelectionFont()
     Return the font.
public  ColorgetSelectionForeground()
     Return the foreground color.
public  intgetSelectionMode()
     Returns whether single-item or multiple-item selections are allowed.
public  SListSelectionModelgetSelectionModel()
     Returns the current selection model.
public  StringgetSelectionParameter(int index)
    
public  intgetStart()
    
public  StringgetToggleSelectionParameter(int index)
    
public  StringgetType()
     Return the type.
public  booleangetValueIsAdjusting()
    
public  RectanglegetViewportSize()
     Returns the actual visible part of a scrollable.
final public  intgetVisibleRowCount()
     Return the preferred number of visible rows.
public  voidintervalAdded(javax.swing.event.ListDataEvent e)
    
public  voidintervalRemoved(javax.swing.event.ListDataEvent e)
    
public  booleanisEpochCheckEnabled()
    
public  booleanisSelectedIndex(int index)
    
public  booleanisSelectionEmpty()
    
public  voidprocessLowLevelEvent(String action, String[] values)
    
public  voidremoveCellRendererPane()
    
public  voidremoveListSelectionListener(ListSelectionListener listener)
     Remove a listener from the list that's notified each time a change to the selection occurs.
public  voidremoveSelectionInterval(int index0, int index1)
    
public  voidremoveViewportChangeListener(SViewportChangeListener l)
     Removes the given SViewportChangeListener from the scrollable.
public  voidsetCG(ListCG cg)
    
public  voidsetCellRenderer(SListCellRenderer cellRenderer)
     Sets the renderer that's used to write out each cell in the list.
public  voidsetEpochCheckEnabled(boolean epochCheckEnabled)
    
public  voidsetListData(Object[] listData)
     A convenience method that constructs a ListModel from an array of Objects and then applies setModel to it.
public  voidsetListData(List listData)
     A convenience method that constructs a ListModel from a List and then applies setModel to it.
public  voidsetModel(ListModel model)
    
public  voidsetOrderType(String t)
    
public  voidsetParent(SContainer p)
    
protected  voidsetParentFrame(SFrame f)
    
public  voidsetSelectedIndex(int index)
     Select a single cell.
public  voidsetSelectedIndices(int[] indices)
     Select some cells.
public  voidsetSelectedValue(Object anObject)
     Selects the specified object.
public  voidsetSelectionBackground(Color color)
     Set the foreground color.
public  voidsetSelectionFont(SFont font)
     Set the font.
public  voidsetSelectionForeground(Color color)
     Set the foreground color.
public  voidsetSelectionInterval(int anchor, int lead)
    
public  voidsetSelectionMode(int selectionMode)
     Allow / permit multiple selection
  • SINGLE_SELECTION Only one list index can be selected at a time.
public  voidsetSelectionModel(SListSelectionModel selectionModel)
     Set the selectionModel for the list.
public  voidsetStart(int s)
    
public  voidsetType(String t)
    
public  voidsetType(String[] t)
    
public  voidsetValueIsAdjusting(boolean b)
    
public  voidsetViewportSize(Rectangle newViewport)
     Sets the actual visible part of a scrollable.
public  voidsetVisibleRowCount(int visibleRowCount)
     Set the preferred number of rows in the list that can be displayed without a scollbar.

Field Detail
DIR_LIST
final public static String DIR_LIST(Code)
The type for an TO-DO list. See SList.setType(String)



MENU_LIST
final public static String MENU_LIST(Code)
The type for an menu-like list. See SList.setType(String)



MULTIPLE_INTERVAL_SELECTION
final public static int MULTIPLE_INTERVAL_SELECTION(Code)
Table selection model. See SList.setSelectionMode(int)



MULTIPLE_SELECTION
final public static int MULTIPLE_SELECTION(Code)
Table selection model. See SList.setSelectionMode(int)



NO_SELECTION
final public static int NO_SELECTION(Code)
Table selection model. See SList.setSelectionMode(int)



ORDERED_LIST
final public static String ORDERED_LIST(Code)
The type for an ordered list. See SList.setType(String) and ORDER_TYPE_xxx



ORDER_TYPE_BIG_ALPHA
final public static String[] ORDER_TYPE_BIG_ALPHA(Code)
Order type for for SList.setOrderType(String)



ORDER_TYPE_BIG_ROMAN
final public static String[] ORDER_TYPE_BIG_ROMAN(Code)
Order type for for SList.setOrderType(String)



ORDER_TYPE_CIRCLE
final public static String[] ORDER_TYPE_CIRCLE(Code)
Order type for for SList.setOrderType(String)



ORDER_TYPE_DISC
final public static String[] ORDER_TYPE_DISC(Code)
Order type for for SList.setOrderType(String)



ORDER_TYPE_NORMAL
final public static String[] ORDER_TYPE_NORMAL(Code)
Order type for for SList.setOrderType(String)



ORDER_TYPE_NUMBER
final public static String[] ORDER_TYPE_NUMBER(Code)
Order type for for SList.setOrderType(String)



ORDER_TYPE_SMALL_ALPHA
final public static String[] ORDER_TYPE_SMALL_ALPHA(Code)
Order type for for SList.setOrderType(String)



ORDER_TYPE_SMALL_ROMAN
final public static String[] ORDER_TYPE_SMALL_ROMAN(Code)
Order type for for SList.setOrderType(String)



ORDER_TYPE_SQUARE
final public static String[] ORDER_TYPE_SQUARE(Code)
Order type for for SList.setOrderType(String)



SELECTOR_SELECTION
final public static Selector SELECTOR_SELECTION(Code)
The Selector for this component.



SINGLE_INTERVAL_SELECTION
final public static int SINGLE_INTERVAL_SELECTION(Code)
Table selection model. See SList.setSelectionMode(int)



SINGLE_SELECTION
final public static int SINGLE_SELECTION(Code)
Table selection model. See SList.setSelectionMode(int)



UNORDERED_LIST
final public static String UNORDERED_LIST(Code)
The type for an unordered list. See SList.setType(String)



orderType
protected String orderType(Code)



  • start
    protected int start(Code)



  • type
    protected String type(Code)



  • viewport
    protected Rectangle viewport(Code)
    Implementation of the Scrollable interface.




    Constructor Detail
    SList
    public SList(ListModel dataModel)(Code)
    Construct a SList that displays the elements in the specified model.



    SList
    public SList(Object[] listData)(Code)
    Construct a SList that displays the elements in the specified array.



    SList
    public SList(List listData)(Code)
    Construct a SList that displays the elements in the specified Vector.



    SList
    public SList()(Code)
    Constructs a SList with an empty model.




    Method Detail
    addListSelectionListener
    public void addListSelectionListener(ListSelectionListener listener)(Code)
    Add a listener to the list that's notified each time a change to the selection occurs.

    If you want to receive immedate an event when the user clicks a new item on the client side you have to register additionally a Java script listener which triggers a form submit.
    combobox.addScriptListener(ListCG.JS_ON_CHANGE_SUBMIT)
    Parameters:
      listener - A ListSelectionListener to be added
    See Also:   SList.getSelectionModel




    addSelectionInterval
    public void addSelectionInterval(int anchor, int lead)(Code)

    Parameters:
      anchor - The first index to add to the selection
    Parameters:
      lead - The last index to add to the selection
    See Also:   ListSelectionModel.addSelectionInterval
    See Also:   SList.setSelectionInterval
    See Also:   SList.removeSelectionInterval
    See Also:   SList.addListSelectionListener



    addViewportChangeListener
    public void addViewportChangeListener(SViewportChangeListener l)(Code)
    Adds the given SViewportChangeListener to the scrollable.
    Parameters:
      l - the listener to be added



    clearSelection
    public void clearSelection()(Code)

    See Also:   ListSelectionModel.clearSelection
    See Also:   SList.isSelectionEmpty
    See Also:   SList.addListSelectionListener



    contentsChanged
    public void contentsChanged(javax.swing.event.ListDataEvent e)(Code)



    createSelectionModel
    protected SListSelectionModel createSelectionModel()(Code)
    creates the default selection model. It uses the swing DefaultListSelectionModel, and wraps some methods to support SListSelectionModel.NO_SELECTION



    fireFinalEvents
    public void fireFinalEvents()(Code)



    fireIntermediateEvents
    public void fireIntermediateEvents()(Code)



    fireSelectionValueChanged
    protected void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting)(Code)
    This method notifies all ListSelectionListeners that the selection model has changed.
    See Also:   SList.addListSelectionListener
    See Also:   SList.removeListSelectionListener
    See Also:   EventListenerList



    fireViewportChanged
    protected void fireViewportChanged(boolean horizontal)(Code)
    Notifies all listeners that have registered interest for notification on changes to this scrollable's viewport in the specified direction.
    See Also:   EventListenerList



    getAnchorSelectionIndex
    public int getAnchorSelectionIndex()(Code)
    The index that most recently anchored an interval selection.
    See Also:   ListSelectionModel.getAnchorSelectionIndex
    See Also:   SList.addSelectionInterval
    See Also:   SList.setSelectionInterval
    See Also:   SList.addListSelectionListener



    getCellRenderer
    final public SListCellRenderer getCellRenderer()(Code)
    Returns the cell renderer. the ListCellRenderer
    See Also:   SList.setCellRenderer



    getCellRendererPane
    public SCellRendererPane getCellRendererPane()(Code)



    getDeselectionParameter
    public String getDeselectionParameter(int index)(Code)



    getLeadSelectionIndex
    public int getLeadSelectionIndex()(Code)
    The index that most recently ended a interval selection.
    See Also:   ListSelectionModel.getLeadSelectionIndex
    See Also:   SList.addSelectionInterval
    See Also:   SList.setSelectionInterval
    See Also:   SList.addListSelectionListener



    getListSelectionListeners
    public ListSelectionListener[] getListSelectionListeners()(Code)
    Returns an array of all the ListSelectionListeners added to this JList with addListSelectionListener(). all of the ListSelectionListener added
    since:
       1.4



    getMaxSelectionIndex
    public int getMaxSelectionIndex()(Code)
    The largest selected cell index.
    See Also:   ListSelectionModel.getMaxSelectionIndex
    See Also:   SList.addListSelectionListener



    getMinSelectionIndex
    public int getMinSelectionIndex()(Code)
    The smallest selected cell index.
    See Also:   ListSelectionModel.getMinSelectionIndex
    See Also:   SList.addListSelectionListener



    getModel
    public ListModel getModel()(Code)
    Returns the data model that holds the items. the ListModel
    See Also:   SList.setModel



    getOrderType
    public String getOrderType()(Code)



  • getScrollableViewportSize
    public Rectangle getScrollableViewportSize()(Code)
    The size of the component in respect to scrollable units.



    getSelectedIndex
    public int getSelectedIndex()(Code)
    A convenience method that returns the first selected index. The first selected index.
    See Also:   SList.getMinSelectionIndex
    See Also:   SList.addListSelectionListener



    getSelectedIndices
    public int[] getSelectedIndices()(Code)
    Return an array of all of the selected indices. all selected indices.
    See Also:   SList.removeSelectionInterval
    See Also:   SList.addListSelectionListener



    getSelectedValue
    public Object getSelectedValue()(Code)
    A convenience method that returns the first selected value or null, if nothing is selected. The first selected value.
    See Also:   SList.getMinSelectionIndex
    See Also:   SList.getModel
    See Also:   SList.addListSelectionListener



    getSelectedValues
    public Object[] getSelectedValues()(Code)
    Return the values of the selected cells. Returns only the selected elements which are in the model. If the selection model indices a selection outside the the datamodel it is ignored the selected values
    See Also:   SList.isSelectedIndex
    See Also:   SList.getModel
    See Also:   SList.addListSelectionListener



    getSelectionBackground
    public Color getSelectionBackground()(Code)
    Return the background color. the background color



    getSelectionFont
    public SFont getSelectionFont()(Code)
    Return the font. the font



    getSelectionForeground
    public Color getSelectionForeground()(Code)
    Return the foreground color. the foreground color



    getSelectionMode
    public int getSelectionMode()(Code)
    Returns whether single-item or multiple-item selections are allowed. The value of the selectionMode property.
    See Also:   SList.setSelectionMode



    getSelectionModel
    public SListSelectionModel getSelectionModel()(Code)
    Returns the current selection model. If selection mode is SListSelectionModel.NO_SELECTION it return null the ListSelectionModel that implements list selections.If selection mode is SListSelectionModel.NO_SELECTION it returnnull
    See Also:   SList.setSelectionMode(int)
    See Also:   ListSelectionModel



    getSelectionParameter
    public String getSelectionParameter(int index)(Code)



    getStart
    public int getStart()(Code)



  • getToggleSelectionParameter
    public String getToggleSelectionParameter(int index)(Code)



    getType
    public String getType()(Code)
    Return the type. the type;



    getValueIsAdjusting
    public boolean getValueIsAdjusting()(Code)
    the value of valueIsAdjusting
    See Also:   ListSelectionModel.getValueIsAdjusting



    getViewportSize
    public Rectangle getViewportSize()(Code)
    Returns the actual visible part of a scrollable.



    getVisibleRowCount
    final public int getVisibleRowCount()(Code)
    Return the preferred number of visible rows. If rendered as a form component it is used for the size-attribute. the preferred number of rows to display
    See Also:   SList.setVisibleRowCount



    intervalAdded
    public void intervalAdded(javax.swing.event.ListDataEvent e)(Code)



    intervalRemoved
    public void intervalRemoved(javax.swing.event.ListDataEvent e)(Code)



    isEpochCheckEnabled
    public boolean isEpochCheckEnabled()(Code)

    See Also:   LowLevelEventListener.isEpochCheckEnabled



    isSelectedIndex
    public boolean isSelectedIndex(int index)(Code)
    True if the specified index is selected.
    See Also:   ListSelectionModel.isSelectedIndex
    See Also:   SList.setSelectedIndex
    See Also:   SList.addListSelectionListener



    isSelectionEmpty
    public boolean isSelectionEmpty()(Code)
    True if nothing is selected
    See Also:   ListSelectionModel.isSelectionEmpty
    See Also:   SList.clearSelection
    See Also:   SList.addListSelectionListener



    processLowLevelEvent
    public void processLowLevelEvent(String action, String[] values)(Code)



    removeCellRendererPane
    public void removeCellRendererPane()(Code)



    removeListSelectionListener
    public void removeListSelectionListener(ListSelectionListener listener)(Code)
    Remove a listener from the list that's notified each time a change to the selection occurs.
    Parameters:
      listener - The ListSelectionListener to remove.
    See Also:   SList.addListSelectionListener
    See Also:   SList.getSelectionModel



    removeSelectionInterval
    public void removeSelectionInterval(int index0, int index1)(Code)

    Parameters:
      index0 - The first index to remove from the selection
    Parameters:
      index1 - The last index to remove from the selection
    See Also:   ListSelectionModel.removeSelectionInterval
    See Also:   SList.setSelectionInterval
    See Also:   SList.addSelectionInterval
    See Also:   SList.addListSelectionListener



    removeViewportChangeListener
    public void removeViewportChangeListener(SViewportChangeListener l)(Code)
    Removes the given SViewportChangeListener from the scrollable.
    Parameters:
      l - the listener to be removed



    setCG
    public void setCG(ListCG cg)(Code)



    setCellRenderer
    public void setCellRenderer(SListCellRenderer cellRenderer)(Code)
    Sets the renderer that's used to write out each cell in the list.
    Parameters:
      cellRenderer - the SListCellRenderer that paints list cellsdescription: The component used to draw the cells.
    See Also:   SList.getCellRenderer



    setEpochCheckEnabled
    public void setEpochCheckEnabled(boolean epochCheckEnabled)(Code)

    See Also:   LowLevelEventListener.isEpochCheckEnabled



    setListData
    public void setListData(Object[] listData)(Code)
    A convenience method that constructs a ListModel from an array of Objects and then applies setModel to it.
    Parameters:
      listData - an array of Objects containing the items to displayin the list
    See Also:   SList.setModel



    setListData
    public void setListData(List listData)(Code)
    A convenience method that constructs a ListModel from a List and then applies setModel to it.
    Parameters:
      listData - a Vector containing the items to display in the list
    See Also:   SList.setModel



    setModel
    public void setModel(ListModel model)(Code)
    Sets the model
    Parameters:
      model - the ListModel that provides the list of itemsdescription: The object that contains the data to be shownin the list.
    See Also:   SList.getModel



    setOrderType
    public void setOrderType(String t)(Code)



  • setParent
    public void setParent(SContainer p)(Code)



    setParentFrame
    protected void setParentFrame(SFrame f)(Code)



    setSelectedIndex
    public void setSelectedIndex(int index)(Code)
    Select a single cell.
    Parameters:
      index - The index of the one cell to select
    See Also:   ListSelectionModel.setSelectionInterval
    See Also:   SList.isSelectedIndex
    See Also:   SList.addListSelectionListener



    setSelectedIndices
    public void setSelectedIndices(int[] indices)(Code)
    Select some cells.
    Parameters:
      indices - The indices of the cells to select
    See Also:   ListSelectionModel.addSelectionInterval
    See Also:   SList.isSelectedIndex
    See Also:   SList.addListSelectionListener



    setSelectedValue
    public void setSelectedValue(Object anObject)(Code)
    Selects the specified object.
    Parameters:
      anObject - the Object to be selected



    setSelectionBackground
    public void setSelectionBackground(Color color)(Code)
    Set the foreground color.
    Parameters:
      color - the new foreground color



    setSelectionFont
    public void setSelectionFont(SFont font)(Code)
    Set the font.
    Parameters:
      font - the new font



    setSelectionForeground
    public void setSelectionForeground(Color color)(Code)
    Set the foreground color.
    Parameters:
      color - the new foreground color



    setSelectionInterval
    public void setSelectionInterval(int anchor, int lead)(Code)

    Parameters:
      anchor - The first index to select
    Parameters:
      lead - The last index to select
    See Also:   ListSelectionModel.setSelectionInterval
    See Also:   SList.addSelectionInterval
    See Also:   SList.removeSelectionInterval
    See Also:   SList.addListSelectionListener



    setSelectionMode
    public void setSelectionMode(int selectionMode)(Code)
    Allow / permit multiple selection
    • SINGLE_SELECTION Only one list index can be selected at a time.
    • MULTIPLE_INTERVAL_SELECTION Multiple items can be selected.

    Parameters:
      selectionMode - single or multiple selectionsenum: SINGLE_SELECTION ListSelectionModel.SINGLE_SELECTIONMULTIPLE_INTERVAL_SELECTION ListSelectionModel.MULTIPLE_INTERVAL_SELECTION
    See Also:   SList.getSelectionMode



    setSelectionModel
    public void setSelectionModel(SListSelectionModel selectionModel)(Code)
    Set the selectionModel for the list. The selection model keeps track of which items are selected.

    description: The selection model, recording which cells are selected.
    See Also:   SList.getSelectionModel




    setStart
    public void setStart(int s)(Code)



  • setType
    public void setType(String t)(Code)



    setType
    public void setType(String[] t)(Code)



    setValueIsAdjusting
    public void setValueIsAdjusting(boolean b)(Code)

    Parameters:
      b - the value for valueIsAdjusting
    See Also:   ListSelectionModel.setValueIsAdjusting



    setViewportSize
    public void setViewportSize(Rectangle newViewport)(Code)
    Sets the actual visible part of a scrollable.



    setVisibleRowCount
    public void setVisibleRowCount(int visibleRowCount)(Code)
    Set the preferred number of rows in the list that can be displayed without a scollbar.

    The default value of this property is 8.
    Parameters:
      visibleRowCount - the preferred number of visible rowsdescription: The preferred number of cells that can be displayed without a scrollbar.
    See Also:   SList.getVisibleRowCount




    Fields inherited from org.wings.SComponent
    final public static int DONE_RENDERING(Code)(Java Doc)
    final public static Selector SELECTOR_ALL(Code)(Java Doc)
    final public static int START_RENDERING(Code)(Java Doc)
    final public static int WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT(Code)(Java Doc)
    final public static int WHEN_IN_FOCUSED_FRAME(Code)(Java Doc)
    protected Map<Selector, Style> dynamicStyles(Code)(Java Doc)
    protected boolean enabled(Code)(Java Doc)
    protected boolean visible(Code)(Java Doc)

    Methods inherited from org.wings.SComponent
    final public void addComponentListener(SComponentListener l)(Code)(Java Doc)
    public void addDynamicStyle(Style style)(Code)(Java Doc)
    final protected void addEventListener(Class<T> type, T listener)(Code)(Java Doc)
    public void addNotify()(Code)(Java Doc)
    final public void addParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
    final public void addRenderListener(SRenderListener renderListener)(Code)(Java Doc)
    final public void addScriptListener(ScriptListener listener)(Code)(Java Doc)
    public void addStyle(String additionalCssClassName)(Code)(Java Doc)
    public Object clone()(Code)(Java Doc)
    protected void fireComponentChangeEvent(SComponentEvent aEvent)(Code)(Java Doc)
    public void fireFinalEvents()(Code)(Java Doc)
    protected void fireKeyEvents()(Code)(Java Doc)
    final public void fireRenderEvent(int type)(Code)(Java Doc)
    public ActionMap getActionMap()(Code)(Java Doc)
    public Color getBackground()(Code)(Java Doc)
    public SBorder getBorder()(Code)(Java Doc)
    public ComponentCG getCG()(Code)(Java Doc)
    final public Object getClientProperty(Object key)(Code)(Java Doc)
    public SPopupMenu getComponentPopupMenu()(Code)(Java Doc)
    public Style getDynamicStyle(Selector selector)(Code)(Java Doc)
    public Collection getDynamicStyles()(Code)(Java Doc)
    public int getFocusTraversalIndex()(Code)(Java Doc)
    public SFont getFont()(Code)(Java Doc)
    public Color getForeground()(Code)(Java Doc)
    public int getHorizontalAlignment()(Code)(Java Doc)
    public InputMap getInputMap()(Code)(Java Doc)
    public InputMap getInputMap(int condition)(Code)(Java Doc)
    final protected int getListenerCount(Class type)(Code)(Java Doc)
    final protected Object[] getListenerList()(Code)(Java Doc)
    final public EventListener[] getListeners(Class<? extends EventListener> type)(Code)(Java Doc)
    public String getLowLevelEventId()(Code)(Java Doc)
    final public String getName()(Code)(Java Doc)
    final public SContainer getParent()(Code)(Java Doc)
    public SFrame getParentFrame()(Code)(Java Doc)
    public SDimension getPreferredSize()(Code)(Java Doc)
    public RequestURL getRequestURL()(Code)(Java Doc)
    public boolean getResidesInForm()(Code)(Java Doc)
    public List<ScriptListener> getScriptListenerList()(Code)(Java Doc)
    public ScriptListener[] getScriptListeners()(Code)(Java Doc)
    final public Session getSession()(Code)(Java Doc)
    public boolean getShowAsFormComponent()(Code)(Java Doc)
    public String getStyle()(Code)(Java Doc)
    public String getToolTipText()(Code)(Java Doc)
    public int getVerticalAlignment()(Code)(Java Doc)
    public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc)
    protected static boolean isDifferent(Object oldObject, Object newObject)(Code)(Java Doc)
    public boolean isEnabled()(Code)(Java Doc)
    public boolean isFocusOwner()(Code)(Java Doc)
    public boolean isRecursivelyVisible()(Code)(Java Doc)
    public boolean isReloadForced()(Code)(Java Doc)
    protected boolean isUpdatePossible()(Code)(Java Doc)
    public boolean isVisible()(Code)(Java Doc)
    protected String paramString()(Code)(Java Doc)
    protected void processComponentEvent(SComponentListener listener, SComponentEvent e)(Code)(Java Doc)
    protected boolean processKeyEvents(String[] values)(Code)(Java Doc)
    protected void processLowLevelEvent(String name, String[] values)(Code)(Java Doc)
    final public void putClientProperty(Object key, Object value)(Code)(Java Doc)
    final void register()(Code)(Java Doc)
    public void reload()(Code)(Java Doc)
    final protected void reloadIfChange(Object oldVal, Object newVal)(Code)(Java Doc)
    final protected void reloadIfChange(int oldVal, int newVal)(Code)(Java Doc)
    final protected void reloadIfChange(boolean oldVal, boolean newVal)(Code)(Java Doc)
    final protected void reloadIfChange(byte oldVal, byte newVal)(Code)(Java Doc)
    final protected void reloadIfChange(short oldVal, short newVal)(Code)(Java Doc)
    final protected void reloadIfChange(long oldVal, long newVal)(Code)(Java Doc)
    final protected void reloadIfChange(float oldVal, float newVal)(Code)(Java Doc)
    final protected void reloadIfChange(double oldVal, double newVal)(Code)(Java Doc)
    final protected void reloadIfChange(char oldVal, char newVal)(Code)(Java Doc)
    final public void removeComponentListener(SComponentListener l)(Code)(Java Doc)
    public void removeDynamicStyle(Selector selector)(Code)(Java Doc)
    final protected void removeEventListener(Class<T> type, T listener)(Code)(Java Doc)
    public void removeNotify()(Code)(Java Doc)
    final public void removeParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
    final public void removeRenderListener(SRenderListener renderListener)(Code)(Java Doc)
    final public void removeScriptListener(ScriptListener listener)(Code)(Java Doc)
    public void removeStyle(String cssStyleClassName)(Code)(Java Doc)
    public void requestFocus()(Code)(Java Doc)
    public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc)
    public void setActionMap(ActionMap actionMap)(Code)(Java Doc)
    public void setAttribute(String cssPropertyName, String value)(Code)(Java Doc)
    public void setAttribute(CSSProperty property, String propertyValue)(Code)(Java Doc)
    public void setAttribute(Selector selector, CSSProperty property, String propertyValue)(Code)(Java Doc)
    public void setAttribute(Selector selector, CSSProperty property, SIcon icon)(Code)(Java Doc)
    public void setAttribute(Selector selector, CSSProperty property, Color color)(Code)(Java Doc)
    public void setAttributes(Selector selector, CSSAttributeSet attributes)(Code)(Java Doc)
    public void setBackground(Color color)(Code)(Java Doc)
    public void setBorder(SBorder border)(Code)(Java Doc)
    public void setCG(ComponentCG newCG)(Code)(Java Doc)
    public void setComponentPopupMenu(SPopupMenu popupMenu)(Code)(Java Doc)
    public void setDynamicStyles(Collection dynamicStyles)(Code)(Java Doc)
    public void setEnabled(boolean enabled)(Code)(Java Doc)
    public void setFocusTraversalIndex(int index)(Code)(Java Doc)
    public void setFont(SFont font)(Code)(Java Doc)
    public void setForeground(Color color)(Code)(Java Doc)
    public void setHorizontalAlignment(int alignment)(Code)(Java Doc)
    public void setInputMap(InputMap inputMap)(Code)(Java Doc)
    public void setInputMap(int condition, InputMap inputMap)(Code)(Java Doc)
    public void setName(String uniqueName)(Code)(Java Doc)
    public void setNameRaw(String uncheckedName)(Code)(Java Doc)
    public void setParent(SContainer parent)(Code)(Java Doc)
    protected void setParentFrame(SFrame parentFrame)(Code)(Java Doc)
    public void setPreferredSize(SDimension preferredSize)(Code)(Java Doc)
    public void setReloadForced(boolean forced)(Code)(Java Doc)
    public void setShowAsFormComponent(boolean showAsFormComponent)(Code)(Java Doc)
    public void setStyle(String cssClassName)(Code)(Java Doc)
    public void setToolTipText(String t)(Code)(Java Doc)
    public void setVerticalAlignment(int alignment)(Code)(Java Doc)
    public void setVisible(boolean visible)(Code)(Java Doc)
    public String toString()(Code)(Java Doc)
    final void unregister()(Code)(Java Doc)
    public void update(Update update)(Code)(Java Doc)
    public void updateCG()(Code)(Java Doc)
    public void write(Device s) throws IOException(Code)(Java Doc)

    Methods inherited from java.lang.Object
    native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
    public boolean equals(Object obj)(Code)(Java Doc)
    protected void finalize() throws Throwable(Code)(Java Doc)
    final native public Class getClass()(Code)(Java Doc)
    native public int hashCode()(Code)(Java Doc)
    final native public void notify()(Code)(Java Doc)
    final native public void notifyAll()(Code)(Java Doc)
    public String toString()(Code)(Java Doc)
    final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
    final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
    final public void wait() throws InterruptedException(Code)(Java Doc)

    www.java2java.com | Contact Us
    Copyright 2009 - 12 Demo Source and Support. All rights reserved.
    All other trademarks are property of their respective owners.