Java Doc for DualListPanel.java in  » Net » SkunkDAV » org » skunk » swing » 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 » Net » SkunkDAV » org.skunk.swing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JPanel
   org.skunk.swing.DualListPanel

DualListPanel
public class DualListPanel extends JPanel (Code)

a widget for making an ordered selection from a list of items. Two JLists are separated vertically by a stack of four buttons, add, remove, up and down. The add and remove buttons move items from the left Jlist to the right and vice versa, respectively. The up and down buttons move selected items of the right JList up and down the list.

Internationalized applications should set the label properties.


Inner Class :class SourceSelectionListener implements ListSelectionListener
Inner Class :class SinkSelectionListener implements ListSelectionListener
Inner Class :class UpAction implements ActionListener
Inner Class :class DownAction implements ActionListener
Inner Class :class AddAction implements ActionListener
Inner Class :class RemoveAction implements ActionListener


Constructor Summary
public  DualListPanel(Object[] sourceItems, Object[] sinkItems)
     constructs a DualListPanel with the given source and sink values.
public  DualListPanel(Object[] sourceItems, Object[] sinkItems, String sourceLabel, String sinkLabel)
     constructs a DualListPanel with the given source and sink values and labels.

Method Summary
public  voidaddListDataListener(ListDataListener ldl)
    
public  JButtongetAddButton()
    
public  Object[]getChosenItems()
    
public  JButtongetDownButton()
    
public  JButtongetRemoveButton()
    
public  JButtongetUpButton()
    
public  voidremoveListDataListener(ListDataListener ldl)
    
public  voidreset()
     returns panel and models to original state at time of construction.
public  voidreset(Object[] sourceItems, Object[] sinkItems)
     populates the JLists with the given source and sink values.
public  voidreset(Object[] chosenItems)
    
public  voidsetAddLabel(String addLabel)
     sets the label of the add button.
public  voidsetDownLabel(String downLabel)
    
public  voidsetListPreferredSize(Dimension d)
     sets the preferred size of both lists.
public  voidsetRemoveLabel(String removeLabel)
    
public  voidsetSinkListLabelText(String sinkListLabelText)
    
public  voidsetSourceListLabelText(String sourceListLabelText)
    
public  voidsetUpLabel(String upLabel)
    


Constructor Detail
DualListPanel
public DualListPanel(Object[] sourceItems, Object[] sinkItems)(Code)
constructs a DualListPanel with the given source and sink values.
Parameters:
  sourceItems - the source values (will appear in the left JList)
Parameters:
  sinkItems - the sink values (will appear in the right JList)



DualListPanel
public DualListPanel(Object[] sourceItems, Object[] sinkItems, String sourceLabel, String sinkLabel)(Code)
constructs a DualListPanel with the given source and sink values and labels.
Parameters:
  sourceItems - the source values (will appear in the left JList)
Parameters:
  sinkItems - the sink values (will appear in the right JList)
Parameters:
  sourceLabel - the label text for the left JList
Parameters:
  sinkLabel - the label text for the right JList




Method Detail
addListDataListener
public void addListDataListener(ListDataListener ldl)(Code)
add a listener to the data model of the left JList
Parameters:
  ldl - the listener



getAddButton
public JButton getAddButton()(Code)
provides access to the add button the add button



getChosenItems
public Object[] getChosenItems()(Code)
returns the items in the right JList the chosen items



getDownButton
public JButton getDownButton()(Code)
provides access to the down button the down button



getRemoveButton
public JButton getRemoveButton()(Code)
provides access to the remove button the remove button



getUpButton
public JButton getUpButton()(Code)
provides access to the up button the up button



removeListDataListener
public void removeListDataListener(ListDataListener ldl)(Code)
remove a listener from the data model of the left JList
Parameters:
  ldl - the listener



reset
public void reset()(Code)
returns panel and models to original state at time of construction.



reset
public void reset(Object[] sourceItems, Object[] sinkItems)(Code)
populates the JLists with the given source and sink values.
Parameters:
  sourceItems - the new contents of the left JList
Parameters:
  sinkITems - the new contents of the right JList



reset
public void reset(Object[] chosenItems)(Code)
sets the contents of the right JList to the given values, and places other values currently in the DualListPanel in the left JList
Parameters:
  chosenItems - the items the right JList should contain



setAddLabel
public void setAddLabel(String addLabel)(Code)
sets the label of the add button.
Parameters:
  addLabel - the new label



setDownLabel
public void setDownLabel(String downLabel)(Code)
sets the label of the down button
Parameters:
  downLabel - the new label



setListPreferredSize
public void setListPreferredSize(Dimension d)(Code)
sets the preferred size of both lists.
Parameters:
  d - the preferred size



setRemoveLabel
public void setRemoveLabel(String removeLabel)(Code)
sets the label of the remove button
Parameters:
  removeLabel - the new label



setSinkListLabelText
public void setSinkListLabelText(String sinkListLabelText)(Code)
sets the label of the right JList
Parameters:
  sinkListLabelText - the new label



setSourceListLabelText
public void setSourceListLabelText(String sourceListLabelText)(Code)
sets the label of the left JList
Parameters:
  sourceListLabelText - the new label



setUpLabel
public void setUpLabel(String upLabel)(Code)
sets the label of the up button
Parameters:
  upLabel - the new label



Methods inherited from javax.swing.JPanel
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public PanelUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void setUI(PanelUI ui)(Code)(Java Doc)
public void updateUI()(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.