Java Doc for Widget.java in  » XML-UI » xmlgui » org » beryl » gui » 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 » XML UI » xmlgui » org.beryl.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.beryl.gui.AbstractView
      org.beryl.gui.Widget

All known Subclasses:   org.beryl.gui.widgets.Menu,  org.beryl.gui.widgets.Item,  org.beryl.gui.widgets.MenuBar,  org.beryl.gui.widgets.ToolBar,  org.beryl.gui.widgets.SplitPane,  org.beryl.gui.widgets.SyntaxEditor,  org.beryl.gui.widgets.Console,  org.beryl.gui.widgets.Button,  org.beryl.gui.widgets.FileField,  org.beryl.gui.widgets.PopupMenu,  org.beryl.gui.widgets.RadioButton,  org.beryl.gui.widgets.Spacer,  org.beryl.gui.widgets.MenuItem,  org.beryl.gui.widgets.Panel,  org.beryl.gui.widgets.Label,  org.beryl.gui.widgets.TabbedPane,  org.beryl.gui.widgets.Tree,  org.beryl.gui.widgets.Table,  org.beryl.gui.widgets.List,  org.beryl.gui.widgets.IconView,  org.beryl.gui.widgets.TextPane,  org.beryl.gui.widgets.Frame,  org.beryl.gui.widgets.CheckBox,  org.beryl.gui.widgets.OutlookBar,  org.beryl.gui.widgets.Separator,  org.beryl.gui.widgets.ProgressBar,  org.beryl.gui.widgets.ComboBox,  org.beryl.gui.widgets.Dialog,  org.beryl.gui.widgets.Wizard,  org.beryl.gui.widgets.OutlookPanel,  org.beryl.gui.widgets.TextField,
Widget
abstract public class Widget extends AbstractView implements LFConstants(Code)
Widget is the base class of all components using the Beryl XML GUI framework.


Field Summary
protected static  HIGConstraintsconstraints
    
protected static  HelpBrokerhelpBroker
    
protected static  HelpSethelpSet
    
protected static  WidgetInfowidgetInfo
    

Constructor Summary
public  Widget(Widget parent, String name, String preset)
    
public  Widget(Widget parent, String name)
    

Method Summary
public  voidaddChild(Widget widget, Object constraint)
    
public  voidaddChild(Widget widget)
    
public  voidaddListener(String event, String name, GUIEventListener listener)
    
public  voidaddValidator(Validator validator)
    
public  StringdumpStructure()
    
public  voidfinalizeConstruction()
     This is called after a component has been completely constructed from an XML description file.
public  WidgetgetChild(int index)
    
public  intgetChildCount()
    
public  intgetChildIndex(Widget child)
    
public  WidgetgetChildWidgetByName(String name)
    
final protected  ListgetChildren()
    
public static  HelpBrokergetHelpBroker()
     Get the application's help broker.
public static  HelpSetgetHelpSet()
     Get the application's help set.
public  StringgetName()
    
public  WidgetgetParentWidget()
    
public  WidgetgetParentWidgetByClass(Class type)
    
public  WidgetgetParentWidgetByName(String name)
    
public  ObjectgetProperty(String name)
    
public  ComponentgetRealWidget()
     Sometimes, a widget needs to be encapsulated - for example inside a JPanel.
public  WidgetgetWidget(String name)
     Lookup a widget in the widget map.
abstract public  ComponentgetWidget()
    
public  WidgetInfogetWidgetInfo()
     Return information about the widget's available properties.
public  booleanhasValidators()
    
public  voidmodelChanged(ModelChangeEvent e)
    
public  voidrecursiveSetDataModel(MapDataModel model)
    
public  voidrecursiveValidate()
    
public  voidremoveAllChildWidgets()
    
public  voidremoveChildWidget(Widget widget)
    
public  voidremoveValidator(Validator validator)
    
public  voidrequestFocus()
    
public  voidrevalidate()
    
public  voidsetEnabled(boolean enabled)
    
public static  voidsetHelpSet(HelpSet helpSet)
     Set the application's help set.
public  voidsetName(String newName)
     Change the widget's name.
public  voidsetProperty(String name, Object value)
    
public  voidsetTooltipText(String text)
    
public  StringtoString()
    
public  voidvalidate()
    

Field Detail
constraints
protected static HIGConstraints constraints(Code)



helpBroker
protected static HelpBroker helpBroker(Code)



helpSet
protected static HelpSet helpSet(Code)



widgetInfo
protected static WidgetInfo widgetInfo(Code)




Constructor Detail
Widget
public Widget(Widget parent, String name, String preset) throws GUIException(Code)
Create a widget with a predefined type
Parameters:
  parent - The widget's parent
Parameters:
  name - The name of the widget
Parameters:
  preset - The preset to use
throws:
  GUIException - If something goes wrong during the construction



Widget
public Widget(Widget parent, String name) throws GUIException(Code)
Create a widget
Parameters:
  parent - The widget's parent
Parameters:
  name - The name of the widget
throws:
  GUIException - If something goes wrong during the construction




Method Detail
addChild
public void addChild(Widget widget, Object constraint) throws GUIException(Code)
Add a child widget with a constraint



addChild
public void addChild(Widget widget) throws GUIException(Code)
Add a child widget to the widget tree



addListener
public void addListener(String event, String name, GUIEventListener listener) throws GUIException(Code)
Add a listener for a given event Every widget can support DnD, to enable it add a "drag" event or an event in the form "drop[mimeType1,mimeType2]"



addValidator
public void addValidator(Validator validator)(Code)
Add a validator to this widget



dumpStructure
public String dumpStructure()(Code)
Return an ASCII-Art representation of the tree



finalizeConstruction
public void finalizeConstruction() throws GUIException(Code)
This is called after a component has been completely constructed from an XML description file. Can be overwritten by subclasses if such funtionality is required.



getChild
public Widget getChild(int index)(Code)
Return the child widget at the given index



getChildCount
public int getChildCount()(Code)
Return the amount of child widgets



getChildIndex
public int getChildIndex(Widget child)(Code)
Return the index of a child



getChildWidgetByName
public Widget getChildWidgetByName(String name)(Code)
Recursively search the widget tree for a child widget



getChildren
final protected List getChildren()(Code)
Return a structure containing the widget's children



getHelpBroker
public static HelpBroker getHelpBroker()(Code)
Get the application's help broker. Note that this help is static to the whole application



getHelpSet
public static HelpSet getHelpSet()(Code)
Get the application's help set. Note that this help is static to the whole application



getName
public String getName()(Code)
Return the widget's name



getParentWidget
public Widget getParentWidget()(Code)
Return the parent widget



getParentWidgetByClass
public Widget getParentWidgetByClass(Class type)(Code)
Return the first parent widget with is an instance of the given class



getParentWidgetByName
public Widget getParentWidgetByName(String name)(Code)
Return a parent widget with a given name



getProperty
public Object getProperty(String name) throws GUIException(Code)
Get a property using the reflection API



getRealWidget
public Component getRealWidget()(Code)
Sometimes, a widget needs to be encapsulated - for example inside a JPanel. This function then returns the actual widget



getWidget
public Widget getWidget(String name)(Code)
Lookup a widget in the widget map. Note that this could be below or above the current widget. Search will, however, be restricted to one widget tree



getWidget
abstract public Component getWidget()(Code)
Return the underlying swing component



getWidgetInfo
public WidgetInfo getWidgetInfo()(Code)
Return information about the widget's available properties. This is mostly used by the Builder



hasValidators
public boolean hasValidators()(Code)
Return whether this widget has any validators associated with it



modelChanged
public void modelChanged(ModelChangeEvent e) throws GUIException(Code)
Notify the widget about a data model event



recursiveSetDataModel
public void recursiveSetDataModel(MapDataModel model) throws GUIException(Code)
Set a new data model for the whole widget tree



recursiveValidate
public void recursiveValidate() throws ValidationException, GUIException(Code)
Recursively validate the widget tree
throws:
  ValidationException - If the widget tree did not validate



removeAllChildWidgets
public void removeAllChildWidgets()(Code)
Remove all of this widget's children from the widget tree



removeChildWidget
public void removeChildWidget(Widget widget) throws GUIException(Code)
Remove a child widget from the widget tree



removeValidator
public void removeValidator(Validator validator)(Code)
Remove a validator from this widget



requestFocus
public void requestFocus()(Code)
Request the focus



revalidate
public void revalidate() throws GUIException(Code)
Revalidate the swing widget tree



setEnabled
public void setEnabled(boolean enabled) throws GUIException(Code)
Set whether this widget is enabled or disabled



setHelpSet
public static void setHelpSet(HelpSet helpSet)(Code)
Set the application's help set. Note that this help set is static to the whole application



setName
public void setName(String newName)(Code)
Change the widget's name. This should only be used by the GUI Builder



setProperty
public void setProperty(String name, Object value) throws GUIException(Code)
Set a property using the reflection api



setTooltipText
public void setTooltipText(String text) throws GUIException(Code)
Set a tooltip for this widget



toString
public String toString()(Code)
Return a string description of this widget



validate
public void validate() throws ValidationException, GUIException(Code)
Validate this widget
throws:
  ValidationException - If the widget did not validate



Methods inherited from org.beryl.gui.AbstractView
public MapDataModel getDataModel()(Code)(Java Doc)
public void setDataModel(MapDataModel newModel) throws GUIException(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.