Java Doc for WingCombo.java in  » Web-Framework » wingS » com » javujavu » javux » 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 » Web Framework » wingS » com.javujavu.javux.wings 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.Container
   com.javujavu.javux.wings.WingComponent
      com.javujavu.javux.wings.WingCombo

WingCombo
public class WingCombo extends WingComponent implements ItemSelectable,MouseListener,MouseMotionListener,FocusListener(Code)
A component that combines a button or editable field and a drop-down list. The user can select a value from the drop-down list, which appears at the user's request. If you make the combo box editable, then the combo box includes an editable field into which the user can type a value.
It is a complex component containing WingButton, WingList and WingTextFiled.
Its drop down list uses also WingScrollPane.

This class is thread safe.

Inner Class :protected class Viewer extends WingComponent

Field Summary
protected  booleanfocused
    

Constructor Summary
public  WingCombo()
     Creates a WingCombo with not editable field.
public  WingCombo(boolean editable)
     Creates a WingCombo with editable or not editable field.

Method Summary
public  voidaddItem(Object item)
     Adds an item to the item list.
public  voidcancelPopup(WingComponent src)
    
public  voiddoLayout()
    
public  voidfocusGained(FocusEvent e)
    
public  voidfocusLost(FocusEvent e)
    
public  WingTextFieldgetEditor()
    
public  ObjectgetItem(int index)
     Returns the list item at the specified index.
public  intgetItemCount()
     Returns the number of items in the list.
public  DimensiongetPreferredSize()
    
public synchronized  intgetSelectedIndex()
    
public synchronized  ObjectgetSelectedItem()
     Gets the selected item on the list.
public  Object[]getSelectedObjects()
     Gets the selected items on the list in an array of Objects.
public synchronized  voidinsertItem(Object item, int index)
     Inserts an item into the item list at a given index.
public  voidloadSkin()
    
public  voidmouseClicked(MouseEvent e)
    
public  voidmouseDragged(MouseEvent e)
    
public  voidmouseEntered(MouseEvent e)
    
public  voidmouseExited(MouseEvent e)
    
public  voidmouseMoved(MouseEvent e)
    
public  voidmousePressed(MouseEvent e)
    
public  voidmouseReleased(MouseEvent e)
    
public  voidmouseWheelMoved(Object src, int rotation)
    
protected  voidprocessFocusEvent(FocusEvent e)
    
public synchronized  voidremoveAllItems()
     Removes all items from the item list.
public synchronized  voidremoveItem(int index)
    
public  voidsetEnabled(boolean b)
    
public synchronized  voidsetSelectedIndex(int index)
     Selects the item at the specified index in the list.
public synchronized  voidsetSelectedItem(Object item)
     Sets the selected item in the combo box display area to the item in the argument.
public  voidsetStyleId(String styleId)
    
public  voidsetTooltip(Object tooltip)
    
public  voidwingProcessActionEvent(ActionEvent e)
    
public  voidwingProcessItemEvent(ItemEvent e)
    
protected  voidwingProcessKeyEvent(KeyEvent e, WingComponent redirecting)
    

Field Detail
focused
protected boolean focused(Code)




Constructor Detail
WingCombo
public WingCombo()(Code)
Creates a WingCombo with not editable field.



WingCombo
public WingCombo(boolean editable)(Code)
Creates a WingCombo with editable or not editable field.
Parameters:
  editable - a boolean value, where true indicates that thecombo field is editable




Method Detail
addItem
public void addItem(Object item)(Code)
Adds an item to the item list. It invokes insertItem(item,-1)
Parameters:
  item - the Object to add to the list



cancelPopup
public void cancelPopup(WingComponent src)(Code)

See Also:   WingComponent.cancelPopup(com.javujavu.javux.wings.WingComponent)



doLayout
public void doLayout()(Code)



focusGained
public void focusGained(FocusEvent e)(Code)



focusLost
public void focusLost(FocusEvent e)(Code)



getEditor
public WingTextField getEditor()(Code)
Returns editor WingTextFiled or null if not editable editor WingTextFiled or null if not editable



getItem
public Object getItem(int index)(Code)
Returns the list item at the specified index. If index is out of range (less than zero or greater than or equal to size) it will return null.
Parameters:
  index - an integer indicating the list position the Object at that list position; ornull if out of range



getItemCount
public int getItemCount()(Code)
Returns the number of items in the list. an integer equal to the number of items in the list



getPreferredSize
public Dimension getPreferredSize()(Code)



getSelectedIndex
public synchronized int getSelectedIndex()(Code)
Gets the index of the selected item on the list, the index of the selected item;if no item is selected -1 is returned.



getSelectedItem
public synchronized Object getSelectedItem()(Code)
Gets the selected item on the list. the selected item on the list;if no item is selected null is returned.



getSelectedObjects
public Object[] getSelectedObjects()(Code)
Gets the selected items on the list in an array of Objects. an array of Objects representing theselected items on the list;if no item is selected, empty array is returned.



insertItem
public synchronized void insertItem(Object item, int index)(Code)
Inserts an item into the item list at a given index. This method allows negative index values. The item with negative index is inserted at getItemCount()+index+1 which means at the end of the list for index = -1
Parameters:
  item - the Object to add to the list
Parameters:
  index - an integer specifying the position at whichto add the item



loadSkin
public void loadSkin()(Code)
Loads skin resources of this and all child components.
 style ID of child components:
 button - [optional styleID.]combo
 list - [optional styleID.]combo
 textfield - [optional styleID.]combo
 non editable viewer - [optional styleID.]doc
 

See Also:   Style
See Also:   WingSkin



mouseClicked
public void mouseClicked(MouseEvent e)(Code)



mouseDragged
public void mouseDragged(MouseEvent e)(Code)



mouseEntered
public void mouseEntered(MouseEvent e)(Code)



mouseExited
public void mouseExited(MouseEvent e)(Code)



mouseMoved
public void mouseMoved(MouseEvent e)(Code)



mousePressed
public void mousePressed(MouseEvent e)(Code)



mouseReleased
public void mouseReleased(MouseEvent e)(Code)



mouseWheelMoved
public void mouseWheelMoved(Object src, int rotation)(Code)



processFocusEvent
protected void processFocusEvent(FocusEvent e)(Code)



removeAllItems
public synchronized void removeAllItems()(Code)
Removes all items from the item list.



removeItem
public synchronized void removeItem(int index)(Code)
Removes the item at index
Parameters:
  index - an int specifying the index of the item to remove



setEnabled
public void setEnabled(boolean b)(Code)



setSelectedIndex
public synchronized void setSelectedIndex(int index)(Code)
Selects the item at the specified index in the list.
Parameters:
  index - the position of the item to select



setSelectedItem
public synchronized void setSelectedItem(Object item)(Code)
Sets the selected item in the combo box display area to the item in the argument. If item is in the list, the display area shows item selected.

If item is not in the list and the combo box is editable the selection will change to item.toString().
Parameters:
  item - the list item to select; use null toclear the selection




setStyleId
public void setStyleId(String styleId)(Code)



setTooltip
public void setTooltip(Object tooltip)(Code)

See Also:   WingComponent.setTooltip(java.lang.Object)



wingProcessActionEvent
public void wingProcessActionEvent(ActionEvent e)(Code)

See Also:   WingComponent.wingProcessActionEvent(java.awt.event.ActionEvent)



wingProcessItemEvent
public void wingProcessItemEvent(ItemEvent e)(Code)

See Also:   WingComponent.wingProcessItemEvent(java.awt.event.ItemEvent)



wingProcessKeyEvent
protected void wingProcessKeyEvent(KeyEvent e, WingComponent redirecting)(Code)

See Also:   WingComponent.wingProcessKeyEvent(java.awt.event.KeyEventcom.javujavu.javux.wings.WingComponent)



Fields inherited from com.javujavu.javux.wings.WingComponent
final public static int POET_EVENT(Code)(Java Doc)
final public static int WINGSKIN_VERSION(Code)(Java Doc)
final public static String WINGS_VERSION(Code)(Java Doc)
protected ActionListener actionListener(Code)(Java Doc)
protected static int debugDelay(Code)(Java Doc)
protected static ItemRenderer defaultRenderer(Code)(Java Doc)
protected static boolean doubleBuffering(Code)(Java Doc)
protected static Thread eventThread(Code)(Java Doc)
protected static boolean heavyPopups(Code)(Java Doc)
protected ItemListener itemListener(Code)(Java Doc)
protected static boolean lightPopups(Code)(Java Doc)
protected static WingComponent mrRoot(Code)(Java Doc)
final protected static Vector oetEvents(Code)(Java Doc)
protected static boolean oetNoQueue(Code)(Java Doc)
final protected static Vector oetTargets(Code)(Java Doc)
protected WingComponent popupOwner(Code)(Java Doc)
protected ItemRenderer renderer(Code)(Java Doc)
protected Vector shortcuts(Code)(Java Doc)
protected Style stDisabled(Code)(Java Doc)
protected Style stNormal(Code)(Java Doc)
protected Style stTop(Code)(Java Doc)
protected String styleId(Code)(Java Doc)
final protected static WingTimer tipStartTimer(Code)(Java Doc)
final protected static WingTimer tipStopTimer(Code)(Java Doc)
protected Object tooltip(Code)(Java Doc)
protected boolean wingFocusable(Code)(Java Doc)
protected Dimension wingPrefSize(Code)(Java Doc)
protected boolean wingPrefSizeSet(Code)(Java Doc)
protected int wingValid(Code)(Java Doc)

Methods inherited from com.javujavu.javux.wings.WingComponent
public void addActionListener(ActionListener l)(Code)(Java Doc)
public void addItemListener(ItemListener l)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public void addShortcut(Shortcut s)(Code)(Java Doc)
public void addShortcuts(WingComponent source)(Code)(Java Doc)
protected void cancelPopup(WingComponent src)(Code)(Java Doc)
protected static void clrPopup(WingComponent popup)(Code)(Java Doc)
protected void dispatchEventOET(AWTEvent e)(Code)(Java Doc)
protected boolean dispatchEventsOET()(Code)(Java Doc)
protected void dispatchShortcuts(KeyEvent e)(Code)(Java Doc)
protected void doScrollRectToVisible(Rectangle r)(Code)(Java Doc)
public static void enablePopups(boolean enableLightweightPopups, boolean enableHeavyweightPopups)(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
public String getClipboardText()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public Frame getParentFrame()(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public ItemRenderer getRenderer()(Code)(Java Doc)
public WingRootPane getRootPane()(Code)(Java Doc)
public void getScrollIncrements(Point unit, Point block)(Code)(Java Doc)
public Style getStyle()(Code)(Java Doc)
public Object getTooltipAt(int x, int y)(Code)(Java Doc)
public Dimension getViewOrSize()(Code)(Java Doc)
public Dimension getViewSize()(Code)(Java Doc)
protected Dimension getViewSize(WingComponent child)(Code)(Java Doc)
public WingFont getWingFont()(Code)(Java Doc)
protected void hideTooltip()(Code)(Java Doc)
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
public boolean isFocusTraversable()(Code)(Java Doc)
public void loadSkin()(Code)(Java Doc)
public void mouseWheelMoved(Object source, int wheelRotation)(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void paintBackground(Graphics g)(Code)(Java Doc)
public void paintComponent(Graphics g)(Code)(Java Doc)
public void postOnEventThread(AWTEvent e)(Code)(Java Doc)
protected void processEvent(AWTEvent e)(Code)(Java Doc)
protected void processKeyEvent(KeyEvent e)(Code)(Java Doc)
protected void processMouseEvent(MouseEvent e)(Code)(Java Doc)
protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc)
public void removeActionListener(ActionListener l)(Code)(Java Doc)
public void removeItemListener(ItemListener l)(Code)(Java Doc)
public void removeShortcut(Shortcut s)(Code)(Java Doc)
public void removeShortcuts(WingComponent source)(Code)(Java Doc)
public void repaintVisible()(Code)(Java Doc)
public boolean repaintVisible(int x, int y, int width, int height)(Code)(Java Doc)
public void revalidateAndRepaint()(Code)(Java Doc)
public void scrollRectToVisible(Rectangle r)(Code)(Java Doc)
public void setClipboardText(String text)(Code)(Java Doc)
public static void setDebugDelay(int debugDelay)(Code)(Java Doc)
public static void setDoubleBuffering(boolean doubleBuffering)(Code)(Java Doc)
public void setEnabled(boolean b)(Code)(Java Doc)
protected static void setPopup(WingComponent popup)(Code)(Java Doc)
public void setPreferredSize(Dimension prefSize)(Code)(Java Doc)
public void setRenderer(ItemRenderer renderer)(Code)(Java Doc)
public void setStyleId(String styleId)(Code)(Java Doc)
public void setTooltip(Object tooltip)(Code)(Java Doc)
public void setTopStyle(Style topStyle)(Code)(Java Doc)
public void setWingFocusable(boolean focusable)(Code)(Java Doc)
protected void showTooltip(Point point)(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
protected void updateShortcuts(WingComponent target, boolean add)(Code)(Java Doc)
public static void updateSkin(Container c)(Code)(Java Doc)
protected void validateTree()(Code)(Java Doc)
public void wingHierarchyChanged(boolean showing)(Code)(Java Doc)
public void wingPaint(Graphics g)(Code)(Java Doc)
protected void wingProcessActionEvent(ActionEvent e)(Code)(Java Doc)
protected void wingProcessItemEvent(ItemEvent e)(Code)(Java Doc)
protected void wingProcessKeyEvent(KeyEvent e, WingComponent redirecting)(Code)(Java Doc)
protected void wingProcessMouseEvent(MouseEvent e)(Code)(Java Doc)
public void wingRequestFocusInWindow()(Code)(Java Doc)
protected void wingValidate()(Code)(Java Doc)

Methods inherited from java.awt.Container
public Component add(Component comp)(Code)(Java Doc)
public Component add(String name, Component comp)(Code)(Java Doc)
public Component add(Component comp, int index)(Code)(Java Doc)
public void add(Component comp, Object constraints)(Code)(Java Doc)
public void add(Component comp, Object constraints, int index)(Code)(Java Doc)
public synchronized void addContainerListener(ContainerListener l)(Code)(Java Doc)
protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void applyComponentOrientation(ComponentOrientation o)(Code)(Java Doc)
public boolean areFocusTraversalKeysSet(int id)(Code)(Java Doc)
public int countComponents()(Code)(Java Doc)
public void deliverEvent(Event e)(Code)(Java Doc)
public void doLayout()(Code)(Java Doc)
public Component findComponentAt(int x, int y)(Code)(Java Doc)
public Component findComponentAt(Point p)(Code)(Java Doc)
public float getAlignmentX()(Code)(Java Doc)
public float getAlignmentY()(Code)(Java Doc)
public Component getComponent(int n)(Code)(Java Doc)
public Component getComponentAt(int x, int y)(Code)(Java Doc)
public Component getComponentAt(Point p)(Code)(Java Doc)
public int getComponentCount()(Code)(Java Doc)
public int getComponentZOrder(Component comp)(Code)(Java Doc)
public Component[] getComponents()(Code)(Java Doc)
public synchronized ContainerListener[] getContainerListeners()(Code)(Java Doc)
public Set<AWTKeyStroke> getFocusTraversalKeys(int id)(Code)(Java Doc)
public FocusTraversalPolicy getFocusTraversalPolicy()(Code)(Java Doc)
public Insets getInsets()(Code)(Java Doc)
public LayoutManager getLayout()(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Dimension getMaximumSize()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public Point getMousePosition(boolean allowChildren) throws HeadlessException(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public Insets insets()(Code)(Java Doc)
public void invalidate()(Code)(Java Doc)
public boolean isAncestorOf(Component c)(Code)(Java Doc)
public boolean isFocusCycleRoot(Container container)(Code)(Java Doc)
public boolean isFocusCycleRoot()(Code)(Java Doc)
final public boolean isFocusTraversalPolicyProvider()(Code)(Java Doc)
public boolean isFocusTraversalPolicySet()(Code)(Java Doc)
public void layout()(Code)(Java Doc)
public void list(PrintStream out, int indent)(Code)(Java Doc)
public void list(PrintWriter out, int indent)(Code)(Java Doc)
public Component locate(int x, int y)(Code)(Java Doc)
public Dimension minimumSize()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void paintComponents(Graphics g)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public Dimension preferredSize()(Code)(Java Doc)
public void print(Graphics g)(Code)(Java Doc)
public void printComponents(Graphics g)(Code)(Java Doc)
protected void processContainerEvent(ContainerEvent e)(Code)(Java Doc)
protected void processEvent(AWTEvent e)(Code)(Java Doc)
public void remove(int index)(Code)(Java Doc)
public void remove(Component comp)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public synchronized void removeContainerListener(ContainerListener l)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public void setComponentZOrder(Component comp, int index)(Code)(Java Doc)
public void setFocusCycleRoot(boolean focusCycleRoot)(Code)(Java Doc)
public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc)
public void setFocusTraversalPolicy(FocusTraversalPolicy policy)(Code)(Java Doc)
final public void setFocusTraversalPolicyProvider(boolean provider)(Code)(Java Doc)
public void setFont(Font f)(Code)(Java Doc)
public void setLayout(LayoutManager mgr)(Code)(Java Doc)
public void transferFocusDownCycle()(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)
public void validate()(Code)(Java Doc)
protected void validateTree()(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.