Java Doc for Widget.java in  » IDE-Netbeans » api » org » netbeans » api » visual » widget » 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 » IDE Netbeans » api » org.netbeans.api.visual.widget 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.api.visual.widget.Widget

All known Subclasses:   org.netbeans.api.visual.widget.ScrollWidget,  org.netbeans.api.visual.widget.ConvolveWidget,  org.netbeans.api.visual.widget.LabelWidget,  org.netbeans.api.visual.vmd.VMDNodeWidget,  org.netbeans.api.visual.widget.LevelOfDetailsWidget,  org.netbeans.api.visual.widget.general.IconNodeWidget,  org.netbeans.api.visual.widget.SeparatorWidget,  org.netbeans.api.visual.widget.LayerWidget,  org.netbeans.modules.visual.experimental.widget.general.ListWidget,  org.netbeans.api.visual.widget.SwingScrollWidget,  org.netbeans.api.visual.vmd.VMDGlyphSetWidget,  org.netbeans.api.visual.widget.ConnectionWidget,  org.netbeans.api.visual.anchor.Anchor,  org.netbeans.api.visual.widget.Scene,  org.netbeans.api.visual.widget.general.ListWidget,  org.netbeans.api.visual.widget.ComponentWidget,  org.netbeans.api.visual.vmd.VMDPinWidget,  org.netbeans.api.visual.widget.ImageWidget,
Widget
public class Widget implements Accessible(Code)
A scene is a tree of small building blocks called widgets and represented by this class.

Each widget has a origin location specified relatively to the location its parent widget and placement is specified be its boundary.

The widget is also responsible for rendering the region. The widget is an abstract implementation and does not have render anything except borders and background. There are various built-in widget each for a specific visualization. The widget also holds general properties like foreground, opacity, ... that could be reused by the high-level widgets.

The widget has a layout assigned. The layout takes care about resolving the placement of children widgets. For that it can use various properties like preferredLocation, preferredBounds, ... When the widget is resolved (placed) than the read only location and bounds properties contains resolved location and boundary of a widget.

Each widget has a chain of actions. Actions defined defines a behaviour of the widget. E.g. MoveAction makes the widget moveable. Also there is possible to create/assign other chains that will be activated based on the active tool of a scene.

The widget have its state specified by ObjectState class. When the widget state is change, notifyStateChanged is called to notify about it. The state is automatically updated by high-level scenes and actions. Yherefore you can define your own look and feel directly in the that method. Since version 2.6 Widget class implements Accessible interface.
author:
   David Kaspar


Inner Class :public interface Dependency

Field Summary
final static  StringMESSAGE_NULL_BOUNDS
    

Constructor Summary
public  Widget(Scene scene)
     Creates a new widget which will be used in a specified scene.

Method Summary
final public  voidaddChild(Widget child)
     Adds a child widget as the last one.
final public  voidaddChild(Widget child, Object constraint)
     Adds a child widget as the last one.
final public  voidaddChild(int index, Widget child)
    
final public  voidaddChild(int index, Widget child, Object constraint)
    
final public  voidaddChildren(List<? extends Widget> children)
     Adds all children in a specified list.
final public  voidaddDependency(Widget.Dependency dependency)
     Adds a dependency listener which is notified when the widget placement or boundary is going to be changed or similar thing happens to its parent widget.
final public  voidbringToBack()
     Brings the widget to the back.
final public  voidbringToFront()
     Brings the widget to the front.
protected  RectanglecalculateClientArea()
     Called to calculate the client area required by the widget without the children widgets.
final public  PointconvertLocalToScene(Point localLocation)
     Converts a location in the local coordination system to the scene coordination system.
final public  RectangleconvertLocalToScene(Rectangle localRectangle)
     Converts a rectangle in the local coordination system to the scene coordination system.
final public  PointconvertSceneToLocal(Point sceneLocation)
     Converts a location in the scene coordination system to the local coordination system.
final public  RectangleconvertSceneToLocal(Rectangle sceneRectangle)
     Converts a rectangle in the scene coordination system to the local coordination system.
final public  WidgetAction.ChaincreateActions(String tool)
     Creates and returns an action chain for a specified tool.
 voiddispatchNotifyAddedCore()
    
 voiddispatchNotifyRemovedCore()
    
final public  booleanequals(Object object)
     Returns whether a specified object is the same as the widget.
final public  AccessibleContextgetAccessibleContext()
     Returns an accessible context of the widget.
final public  WidgetAction.ChaingetActions()
     Returns a default action chain.
final public  WidgetAction.ChaingetActions(String tool)
     Returns already created action chain for a specified tool.
final public  PaintgetBackground()
     Returns the widget background paint.
final public  BordergetBorder()
     Returns the border of the widget.
final public  RectanglegetBounds()
     Returns the resolved bounds of the widget.
final public  ObjectgetChildConstraint(Widget child)
     Returns constraint assigned to a specified child widget.
final public  List<Widget>getChildren()
     Returns a list of children widgets.
final public  RectanglegetClientArea()
     Returns a client area of the widget.
final public  CursorgetCursor()
     Returns a mouse cursor for the widget.
protected  CursorgetCursorAt(Point localLocation)
     Returns a mouse cursor for a specified local location in the widget.
final public  Collection<Dependency>getDependencies()
     Returns a collection of registered dependencies.
final public  FontgetFont()
     Returns the font assigned to the widget.
final public  ColorgetForeground()
     Returns the widget foreground color.
protected  Graphics2DgetGraphics()
     Returns a Graphics2D instance with is assigned to the scene.
final public  LayoutgetLayout()
     Returns the layout of the widget.
final public  PointgetLocation()
     Returns the resolved location of the widget.
public  LookupgetLookup()
     Returns a lookup of the widget.
final public  DimensiongetMaximumSize()
     Returns a maximum size of the widget.
final public  DimensiongetMinimumSize()
     Returns a minimum size of the widget.
final public  WidgetgetParentWidget()
     Returns a parent widget.
final public  RectanglegetPreferredBounds()
     Returns a preferred bounds relatively to the location of the widget.
final public  PointgetPreferredLocation()
     Returns a preferred location of the widget.
final public  DimensiongetPreferredSize()
     Returns a preferred size of the widget.
final public  ScenegetScene()
    
final public  ObjectStategetState()
     Returns a state of the widget.
final public  StringgetToolTipText()
     Returns a tool-tip text of the widget.
final public  inthashCode()
     Returns the object hash code.
final public  booleanisCheckClipping()
     Returns whether clipping is used in the widget.
final public  booleanisEnabled()
     Returns whether the widget is enabled.
public  booleanisHitAt(Point localLocation)
     Called to whether a particular location in local coordination system is controlled (otionally also painted) by the widget.
final public  booleanisOpaque()
     Returns whether the widget is opaque.
final public  booleanisPreferredBoundsSet()
     Returns whether a preferred bounds are set.
protected  booleanisRepaintRequiredForRevalidating()
     Returns whether whole area of the widget has to be repainted after the validation of the widget.
public  booleanisValidated()
     Returns true if the widget is validated (is not scheduled to revalidation).
final public  booleanisVisible()
     Returns whether the widget is visible.
final  voidjustify()
    
 voidlayout(boolean fullValidation)
    
protected  voidnotifyAdded()
     This method is called to notify that the view is shown.
protected  voidnotifyRemoved()
     This method is called to notify that the view is hidden.
protected  voidnotifyStateChanged(ObjectState previousState, ObjectState state)
     Called to notify about the change of the widget state.
final public  voidpaint()
     Paints the widget with its children widget into the Graphics2D instance acquired from Scene.getGraphics method.
protected  voidpaintBackground()
     Called to paint the widget background itself only using the Graphics2D instance acquired from Scene.getGraphics method.
protected  voidpaintBorder()
     Called to paint the widget border itself only using the Graphics2D instance acquired from Scene.getGraphics method.
protected  voidpaintChildren()
     Called to paint the children widgets only using the Graphics2D instance acquired from Scene.getGraphics method.
protected  voidpaintWidget()
     Called to paint the widget itself only using the Graphics2D instance acquired from Scene.getGraphics method.
final public  voidremoveChild(Widget child)
     Removes a child widget.
final public  voidremoveChildren()
     Removes all children widgets.
final public  voidremoveChildren(List<Widget> widgets)
     Removes all children widget that are in a specified list.
final public  voidremoveDependency(Widget.Dependency dependency)
     Removes a dependency listener.
final public  voidremoveFromParent()
     Removes the widget from its parent.
final public  voidrepaint()
     Schedules the widget for repainting.
final public  voidresolveBounds(Point location, Rectangle bounds)
     Sets resolved location and bounds of the widget This method is usually called from implementations of Layout interface.
final public  voidrevalidate(boolean repaintOnly)
     Schedules the widget to repaint or revalidation.
final public  voidrevalidate()
     Schedules the widget for revalidation. The Scene.validate method has to be called after all changes to invoke validation.
final public  voidsetAccessibleContext(AccessibleContext accessibleContext)
     Sets a accessible context of the widget.
final public  voidsetBackground(Paint background)
     Sets the widget background paint.
final public  voidsetBorder(Border border)
     Sets the border of the widget.
final public  voidsetBorder(javax.swing.border.Border swingBorder)
     Sets the Swing layout as the border of the widget.
final public  voidsetCheckClipping(boolean checkClipping)
     Sets a clipping for the widget.
final public  voidsetChildConstraint(Widget child, Object constraint)
     Assigns a constraint to a child widget.
final public  voidsetCursor(Cursor cursor)
     Sets a cursor for the widget.
final public  voidsetEnabled(boolean enabled)
     Sets whether the widget is enabled.
final public  voidsetFont(Font font)
     Sets the widget font.
final public  voidsetForeground(Color foreground)
     Sets the widget foreground color.
final public  voidsetLayout(Layout layout)
     Sets the layout of the widget.
final public  voidsetMaximumSize(Dimension maximumSize)
    
final public  voidsetMinimumSize(Dimension minimumSize)
    
final public  voidsetOpaque(boolean opaque)
     Sets the widget opacity.
final public  voidsetPreferredBounds(Rectangle preferredBounds)
     Sets a preferred bounds that are specified relatively to the location of the widget.
final public  voidsetPreferredLocation(Point preferredLocation)
     Sets a preferred location of the widget.
final public  voidsetPreferredSize(Dimension preferredSize)
    
final public  voidsetState(ObjectState state)
     Sets a state of the widget.
final public  voidsetToolTipText(String toolTipText)
     Sets a tool-tip of the widget.
final public  voidsetVisible(boolean visible)
     Sets whether the widget is visible.

Field Detail
MESSAGE_NULL_BOUNDS
final static String MESSAGE_NULL_BOUNDS(Code)




Constructor Detail
Widget
public Widget(Scene scene)(Code)
Creates a new widget which will be used in a specified scene.
Parameters:
  scene - the scene where the widget is going to be used




Method Detail
addChild
final public void addChild(Widget child)(Code)
Adds a child widget as the last one.
Parameters:
  child - the child widget to be added



addChild
final public void addChild(Widget child, Object constraint)(Code)
Adds a child widget as the last one.
Parameters:
  child - the child widget to be added
Parameters:
  constraint - the constraint assigned to the child widget



addChild
final public void addChild(int index, Widget child)(Code)
Adds a child at a specified index
Parameters:
  index - the index (the child is added before the one that is not the index place)
Parameters:
  child - the child widget



addChild
final public void addChild(int index, Widget child, Object constraint)(Code)
Adds a child at a specified index
Parameters:
  index - the index (the child is added before the one that is not the index place)
Parameters:
  child - the child widget
Parameters:
  constraint - the constraint assigned to the child widget



addChildren
final public void addChildren(List<? extends Widget> children)(Code)
Adds all children in a specified list.
Parameters:
  children - the list of children widgets



addDependency
final public void addDependency(Widget.Dependency dependency)(Code)
Adds a dependency listener which is notified when the widget placement or boundary is going to be changed or similar thing happens to its parent widget.
Parameters:
  dependency - the dependency listener



bringToBack
final public void bringToBack()(Code)
Brings the widget to the back. Means: the widget becomes the first child in the list of children of the parent widget.



bringToFront
final public void bringToFront()(Code)
Brings the widget to the front. Means: the widget becomes the last child in the list of children of the parent widget.



calculateClientArea
protected Rectangle calculateClientArea()(Code)
Called to calculate the client area required by the widget without the children widgets. the calculated client area



convertLocalToScene
final public Point convertLocalToScene(Point localLocation)(Code)
Converts a location in the local coordination system to the scene coordination system.
Parameters:
  localLocation - the local location the scene location



convertLocalToScene
final public Rectangle convertLocalToScene(Rectangle localRectangle)(Code)
Converts a rectangle in the local coordination system to the scene coordination system.
Parameters:
  localRectangle - the local rectangle the scene rectangle



convertSceneToLocal
final public Point convertSceneToLocal(Point sceneLocation)(Code)
Converts a location in the scene coordination system to the local coordination system.
Parameters:
  sceneLocation - the scene location the local location



convertSceneToLocal
final public Rectangle convertSceneToLocal(Rectangle sceneRectangle)(Code)
Converts a rectangle in the scene coordination system to the local coordination system.
Parameters:
  sceneRectangle - the scene rectangle the local rectangle



createActions
final public WidgetAction.Chain createActions(String tool)(Code)
Creates and returns an action chain for a specified tool.
Parameters:
  tool - the tool the action chain



dispatchNotifyAddedCore
void dispatchNotifyAddedCore()(Code)



dispatchNotifyRemovedCore
void dispatchNotifyRemovedCore()(Code)



equals
final public boolean equals(Object object)(Code)
Returns whether a specified object is the same as the widget.
Parameters:
  object - the object true if the object reference is the same as the widget



getAccessibleContext
final public AccessibleContext getAccessibleContext()(Code)
Returns an accessible context of the widget. the accessible context



getActions
final public WidgetAction.Chain getActions()(Code)
Returns a default action chain. the default action chain.



getActions
final public WidgetAction.Chain getActions(String tool)(Code)
Returns already created action chain for a specified tool.
Parameters:
  tool - the tool the action chain; null, if no chain for the tool exists



getBackground
final public Paint getBackground()(Code)
Returns the widget background paint. the background paint



getBorder
final public Border getBorder()(Code)
Returns the border of the widget. the border



getBounds
final public Rectangle getBounds()(Code)
Returns the resolved bounds of the widget. The bounds are specified relatively to the location of the widget.

The location is resolved/set by calling resolveBounds method which should be called from Layout interface implementation only. Therefore the corrent value is available only after the scene is validated (SceneListener.sceneValidated method). Before validation a previous/obsolete or null value could be returned. See Layout section in documentation. the bounds in local coordination system




getChildConstraint
final public Object getChildConstraint(Widget child)(Code)
Returns constraint assigned to a specified child widget.
Parameters:
  child - the child widget the constraint



getChildren
final public List<Widget> getChildren()(Code)
Returns a list of children widgets. the list of children widgets



getClientArea
final public Rectangle getClientArea()(Code)
Returns a client area of the widget. the client area



getCursor
final public Cursor getCursor()(Code)
Returns a mouse cursor for the widget. the mouse cursor



getCursorAt
protected Cursor getCursorAt(Point localLocation)(Code)
Returns a mouse cursor for a specified local location in the widget.
Parameters:
  localLocation - the local location the mouse cursor; default implementation return value of cursor property.
since:
   2.3



getDependencies
final public Collection<Dependency> getDependencies()(Code)
Returns a collection of registered dependencies. the unmodifiable collection of dependencies
since:
   2.6



getFont
final public Font getFont()(Code)
Returns the font assigned to the widget. If not set yet, then it returns the font of its parent widget. the font



getForeground
final public Color getForeground()(Code)
Returns the widget foreground color. the foreground color



getGraphics
protected Graphics2D getGraphics()(Code)
Returns a Graphics2D instance with is assigned to the scene. Usually used in the calculatedClientArea and paintWidget method. the Graphics2D instance; null if the scene view is not created or visible yet



getLayout
final public Layout getLayout()(Code)
Returns the layout of the widget. the layout



getLocation
final public Point getLocation()(Code)
Returns the resolved location of the widget. The location is specified relatively to the location of the parent widget.

The location is resolved/set by calling resolveBounds method which should be called from Layout interface implementation only. Therefore the corrent value is available only after the scene is validated (SceneListener.sceneValidated method). Before validation a previous/obsolete or [0,0] value could be returned. See Layout section in documentation. the location in the local coordination system of the parent widget




getLookup
public Lookup getLookup()(Code)
Returns a lookup of the widget. the lookup



getMaximumSize
final public Dimension getMaximumSize()(Code)
Returns a maximum size of the widget. the maximum size; if null, then no maximum size are set.



getMinimumSize
final public Dimension getMinimumSize()(Code)
Returns a minimum size of the widget. the minimum size; if null, then no minumum size are set.



getParentWidget
final public Widget getParentWidget()(Code)
Returns a parent widget. the parent widget



getPreferredBounds
final public Rectangle getPreferredBounds()(Code)
Returns a preferred bounds relatively to the location of the widget. If no preferred bounds are set, then it returns a preferred bounds that are calculated from the calculateClientArea method of this widget and location and bounds of the children widgets. This calculated bounds are processed by the minimum and maximum bounds too.

This method can be called after child widgets are layed out which is assured in method calls of the Layout interface implementation. If preferred bounds are set (check it using isPreferredBoundsSet method), you can call this method at any time. the preferred bounds




getPreferredLocation
final public Point getPreferredLocation()(Code)
Returns a preferred location of the widget. the preferred location; if null, then no preferred location is set



getPreferredSize
final public Dimension getPreferredSize()(Code)
Returns a preferred size of the widget. the preferred size; if null, then no preferred size are set.



getScene
final public Scene getScene()(Code)
Returns a scene where the widget is assigned the scene



getState
final public ObjectState getState()(Code)
Returns a state of the widget. the widget state



getToolTipText
final public String getToolTipText()(Code)
Returns a tool-tip text of the widget. the tool-tip text



hashCode
final public int hashCode()(Code)
Returns the object hash code. the object hash code



isCheckClipping
final public boolean isCheckClipping()(Code)
Returns whether clipping is used in the widget. true, if the check clipping is used



isEnabled
final public boolean isEnabled()(Code)
Returns whether the widget is enabled. If the widget is disabled then any event is processed by assigned actions. true if the widget is enabled.



isHitAt
public boolean isHitAt(Point localLocation)(Code)
Called to whether a particular location in local coordination system is controlled (otionally also painted) by the widget.
Parameters:
  localLocation - the local location true, if the location belong to the widget



isOpaque
final public boolean isOpaque()(Code)
Returns whether the widget is opaque. true, if the widget is opaque



isPreferredBoundsSet
final public boolean isPreferredBoundsSet()(Code)
Returns whether a preferred bounds are set. true, if preferred bounds are set



isRepaintRequiredForRevalidating
protected boolean isRepaintRequiredForRevalidating()(Code)
Returns whether whole area of the widget has to be repainted after the validation of the widget. Used be LayerWidget for performance optiomalization. true, if requires; false, if does not require



isValidated
public boolean isValidated()(Code)
Returns true if the widget is validated (is not scheduled to revalidation). true, if is validated



isVisible
final public boolean isVisible()(Code)
Returns whether the widget is visible. true if the widget is visible



justify
final void justify()(Code)



layout
void layout(boolean fullValidation)(Code)



notifyAdded
protected void notifyAdded()(Code)
This method is called to notify that the view is shown. Note: You must not modify a tree of widgets from within this method. It means: do not call addChild, removeChild and similar methods.



notifyRemoved
protected void notifyRemoved()(Code)
This method is called to notify that the view is hidden. Note: You must not modify a tree of widgets from within this method. It means: do not call addChild, removeChild and similar methods.



notifyStateChanged
protected void notifyStateChanged(ObjectState previousState, ObjectState state)(Code)
Called to notify about the change of the widget state.
Parameters:
  previousState - the previous state
Parameters:
  state - the new state



paint
final public void paint()(Code)
Paints the widget with its children widget into the Graphics2D instance acquired from Scene.getGraphics method.



paintBackground
protected void paintBackground()(Code)
Called to paint the widget background itself only using the Graphics2D instance acquired from Scene.getGraphics method.



paintBorder
protected void paintBorder()(Code)
Called to paint the widget border itself only using the Graphics2D instance acquired from Scene.getGraphics method.
since:
   2.1



paintChildren
protected void paintChildren()(Code)
Called to paint the children widgets only using the Graphics2D instance acquired from Scene.getGraphics method.



paintWidget
protected void paintWidget()(Code)
Called to paint the widget itself only using the Graphics2D instance acquired from Scene.getGraphics method.



removeChild
final public void removeChild(Widget child)(Code)
Removes a child widget.
Parameters:
  child - the child widget



removeChildren
final public void removeChildren()(Code)
Removes all children widgets.



removeChildren
final public void removeChildren(List<Widget> widgets)(Code)
Removes all children widget that are in a specified list.
Parameters:
  widgets - the list of children widgets to be removed



removeDependency
final public void removeDependency(Widget.Dependency dependency)(Code)
Removes a dependency listener.
Parameters:
  dependency - the dependency listener



removeFromParent
final public void removeFromParent()(Code)
Removes the widget from its parent.



repaint
final public void repaint()(Code)
Schedules the widget for repainting.



resolveBounds
final public void resolveBounds(Point location, Rectangle bounds)(Code)
Sets resolved location and bounds of the widget This method is usually called from implementations of Layout interface.
Parameters:
  location - the resolved location; if null then [0,0] point is used instead
Parameters:
  bounds - the resolved bounds; if null then the preferred bounds are used instead



revalidate
final public void revalidate(boolean repaintOnly)(Code)
Schedules the widget to repaint or revalidation.
Parameters:
  repaintOnly - if true, then the widget is scheduled for repainting only;if false, then widget is scheduled for revalidation (the Scene.validate method has to be called after all changes to invoke validation)



revalidate
final public void revalidate()(Code)
Schedules the widget for revalidation. The Scene.validate method has to be called after all changes to invoke validation. In some cases it is invoked automatically.



setAccessibleContext
final public void setAccessibleContext(AccessibleContext accessibleContext)(Code)
Sets a accessible context of the widget.
Parameters:
  accessibleContext - the accessible context



setBackground
final public void setBackground(Paint background)(Code)
Sets the widget background paint.
Parameters:
  background - the background paint



setBorder
final public void setBorder(Border border)(Code)
Sets the border of the widget.
Parameters:
  border - the border



setBorder
final public void setBorder(javax.swing.border.Border swingBorder)(Code)
Sets the Swing layout as the border of the widget.
Parameters:
  swingBorder - the Swing border



setCheckClipping
final public void setCheckClipping(boolean checkClipping)(Code)
Sets a clipping for the widget.
Parameters:
  checkClipping - if true, then the clipping is used



setChildConstraint
final public void setChildConstraint(Widget child, Object constraint)(Code)
Assigns a constraint to a child widget.
Parameters:
  child - the child widget
Parameters:
  constraint - the constraint



setCursor
final public void setCursor(Cursor cursor)(Code)
Sets a cursor for the widget.
Parameters:
  cursor - the mouse cursor; if null, the cursor is unset



setEnabled
final public void setEnabled(boolean enabled)(Code)
Sets whether the widget is enabled. If the widget is disabled then any event is processed by assigned actions.
Parameters:
  enabled - if true, then the widget is enabled



setFont
final public void setFont(Font font)(Code)
Sets the widget font.
Parameters:
  font - the font; if null, then widget unassignes its font.



setForeground
final public void setForeground(Color foreground)(Code)
Sets the widget foreground color.
Parameters:
  foreground - the foreground color



setLayout
final public void setLayout(Layout layout)(Code)
Sets the layout of the widget.
Parameters:
  layout - the layout



setMaximumSize
final public void setMaximumSize(Dimension maximumSize)(Code)
Sets a maximum size of the widget
Parameters:
  maximumSize - the maximum size; if null, then maximum size are unset.



setMinimumSize
final public void setMinimumSize(Dimension minimumSize)(Code)
Sets a minumum size of the widget
Parameters:
  minimumSize - the minimum size; if null, then minimum size are unset.



setOpaque
final public void setOpaque(boolean opaque)(Code)
Sets the widget opacity.
Parameters:
  opaque - if true, then the widget is opaque



setPreferredBounds
final public void setPreferredBounds(Rectangle preferredBounds)(Code)
Sets a preferred bounds that are specified relatively to the location of the widget.
Parameters:
  preferredBounds - the preferred bounds; if null, then the preferred bounds are unset



setPreferredLocation
final public void setPreferredLocation(Point preferredLocation)(Code)
Sets a preferred location of the widget.
Parameters:
  preferredLocation - the preferred location; if null, then the preferred location is unset



setPreferredSize
final public void setPreferredSize(Dimension preferredSize)(Code)
Sets a preferred size of the widget
Parameters:
  preferredSize - the preferred size; if null, then preferred size are unset.



setState
final public void setState(ObjectState state)(Code)
Sets a state of the widget.
Parameters:
  state - the widget state



setToolTipText
final public void setToolTipText(String toolTipText)(Code)
Sets a tool-tip of the widget.
Parameters:
  toolTipText - the tool tip text



setVisible
final public void setVisible(boolean visible)(Code)
Sets whether the widget is visible.
Parameters:
  visible - if true, then the widget is visible



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.