Java Doc for WidgetDash.java in  » Web-Framework » roma-webwizard » tucana » echo2 » app » 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 » roma webwizard » tucana.echo2.app 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


tucana.echo2.app.WidgetDash

WidgetDash
public class WidgetDash extends Component (Code)
A Widget Panel is a container organized in columns in which WidgetContainer components can be placed. The Widgets (WidgetContainers) can be repositioned in the panel such that they all line up in columns. The state of the panel (the user's layout preference) can be extracted and stored server-side, to be used later to recreate the panel for a user.
author:
   Jeremy Volkman


Field Summary
final public static  StringACTION_LISTENERS_CHANGED_PROPERTY
    
final public static  StringACTION_POSITIONS_UPDATED
    
final public static  intDEFAULT_COLUMN_COUNT
    
final public static  ExtentDEFAULT_COLUMN_SPACING
    
final public static  floatDEFAULT_DRAGGED_WIDGET_OPACITY
    
final public static  longDEFAULT_DRIFT_INTERVAL
    
final public static  intDEFAULT_DRIFT_STEP
    
final public static  BorderDEFAULT_SHADOW_BORDER
    
final public static  floatDEFAULT_SHADOW_OPACITY
    
final public static  intDEFAULT_SHADOW_TYPE
    
final public static  ExtentDEFAULT_WIDGET_SPACING
    
final public static  StringPROPERTY_COLUMN_COUNT
     Number of columns in panel.
final public static  StringPROPERTY_COLUMN_SPACING
     Horizontal spacing between columns.
final public static  StringPROPERTY_DRAGGED_WIDGET_OPACITY
     Opacity of dragged widget.
final public static  StringPROPERTY_DRAG_CONTAINER
     Container to be used for widget dragging.
final public static  StringPROPERTY_DRAG_IN_BODY
     Whether or not to drag widget in the HTML body element.
final public static  StringPROPERTY_DRIFT_INTERVAL
     The amount of time (ms) between drift animation steps.
final public static  StringPROPERTY_DRIFT_STEP
     The distance in PX of each drift animation step.
final public static  StringPROPERTY_RETURN_METHOD
     The type of dragged widget return to use (snap or drift (animated)).
final public static  StringPROPERTY_SHADOW_BORDER
     Widget shadow border (border mode).
final public static  StringPROPERTY_SHADOW_OPACITY
     Opacity of widget shadow (clone mode).
final public static  StringPROPERTY_SHADOW_TYPE
     Type of widget shadow to use.
final public static  StringPROPERTY_WIDGET_SPACING
     Vertical spacing betwen widgets.
final public static  intRETURN_METHOD_DRIFT
    
final public static  intRETURN_METHOD_SNAP
    
final public static  intSHADOW_TYPE_BORDER
    
final public static  intSHADOW_TYPE_CLONE
    

Constructor Summary
public  WidgetDash()
     Default contstructor.
public  WidgetDash(WidgetDashState state, WidgetContainerFactory factory)
     Construct a WidgetPane given the previously stored WidgetDashState and a WidgetContainerFactory .

Method Summary
public  voidaddActionListener(ActionListener l)
     Adds an ActionListener to receive notification of user actions, i.e., widget position changes.
public  intgetColumnCount()
    
public  ExtentgetColumnSpacing()
    
public  ComponentgetDragContainer()
     Get the current drag container being used.
public  floatgetDraggedWidgetOpacity()
     Get the current dragged widget opacity value.
public  longgetDriftInterval()
     Get the drift step interval (ms).
public  intgetDriftStep()
    
public  intgetReturnMethod()
    
public  BordergetShadowBorder()
     Get the current shadow border.
public  floatgetShadowOpacity()
    
public  intgetShadowType()
    
public  WidgetDashStategetWidgetDashState()
     Get the current state of this WidgetDash A new WidgetDashState object.
public  ExtentgetWidgetSpacing()
    
public  booleanisDragInBody()
    
public  booleanisValidChild(Component child)
    
public  voidprocessInput(String name, Object value)
    
public  voidremoveActionListener(ActionListener l)
     Removes an ActionListener from being notified of user actions, i.e., widget position changes.
public  voidrestore(WidgetDashState state, WidgetContainerFactory factory)
     Populate the WidgetPane given the previously stored WidgetDashState and a WidgetContainerFactory .
public  voidsetColumnCount(int newCount)
    
public  voidsetColumnSpacing(Extent spacing)
    
public  voidsetDragContainer(Component dragContainer)
     Set the container (component) that widgets should be moved to when being dragged.
public  voidsetDragInBody(boolean dragInBody)
    
public  voidsetDraggedWidgetOpacity(float opacity)
     Set the dragged widget opacity value.
public  voidsetDriftInterval(long driftStep)
     Set the drift step interval (ms).
public  voidsetDriftStep(int driftStep)
    
public  voidsetReturnMethod(int returnMethod)
     Set the method to be used when returning a dropped widget to its shadow's position.
public  voidsetShadowBorder(Border border)
     Set the shadow border to use.
public  voidsetShadowOpacity(float opacity)
    
public  voidsetShadowType(int type)
    
public  voidsetWidgetSpacing(Extent spacing)
    

Field Detail
ACTION_LISTENERS_CHANGED_PROPERTY
final public static String ACTION_LISTENERS_CHANGED_PROPERTY(Code)



ACTION_POSITIONS_UPDATED
final public static String ACTION_POSITIONS_UPDATED(Code)



DEFAULT_COLUMN_COUNT
final public static int DEFAULT_COLUMN_COUNT(Code)



DEFAULT_COLUMN_SPACING
final public static Extent DEFAULT_COLUMN_SPACING(Code)



DEFAULT_DRAGGED_WIDGET_OPACITY
final public static float DEFAULT_DRAGGED_WIDGET_OPACITY(Code)



DEFAULT_DRIFT_INTERVAL
final public static long DEFAULT_DRIFT_INTERVAL(Code)



DEFAULT_DRIFT_STEP
final public static int DEFAULT_DRIFT_STEP(Code)



DEFAULT_SHADOW_BORDER
final public static Border DEFAULT_SHADOW_BORDER(Code)



DEFAULT_SHADOW_OPACITY
final public static float DEFAULT_SHADOW_OPACITY(Code)



DEFAULT_SHADOW_TYPE
final public static int DEFAULT_SHADOW_TYPE(Code)



DEFAULT_WIDGET_SPACING
final public static Extent DEFAULT_WIDGET_SPACING(Code)



PROPERTY_COLUMN_COUNT
final public static String PROPERTY_COLUMN_COUNT(Code)
Number of columns in panel.



PROPERTY_COLUMN_SPACING
final public static String PROPERTY_COLUMN_SPACING(Code)
Horizontal spacing between columns.



PROPERTY_DRAGGED_WIDGET_OPACITY
final public static String PROPERTY_DRAGGED_WIDGET_OPACITY(Code)
Opacity of dragged widget.



PROPERTY_DRAG_CONTAINER
final public static String PROPERTY_DRAG_CONTAINER(Code)
Container to be used for widget dragging.



PROPERTY_DRAG_IN_BODY
final public static String PROPERTY_DRAG_IN_BODY(Code)
Whether or not to drag widget in the HTML body element.



PROPERTY_DRIFT_INTERVAL
final public static String PROPERTY_DRIFT_INTERVAL(Code)
The amount of time (ms) between drift animation steps.



PROPERTY_DRIFT_STEP
final public static String PROPERTY_DRIFT_STEP(Code)
The distance in PX of each drift animation step.



PROPERTY_RETURN_METHOD
final public static String PROPERTY_RETURN_METHOD(Code)
The type of dragged widget return to use (snap or drift (animated)).



PROPERTY_SHADOW_BORDER
final public static String PROPERTY_SHADOW_BORDER(Code)
Widget shadow border (border mode).



PROPERTY_SHADOW_OPACITY
final public static String PROPERTY_SHADOW_OPACITY(Code)
Opacity of widget shadow (clone mode).



PROPERTY_SHADOW_TYPE
final public static String PROPERTY_SHADOW_TYPE(Code)
Type of widget shadow to use.



PROPERTY_WIDGET_SPACING
final public static String PROPERTY_WIDGET_SPACING(Code)
Vertical spacing betwen widgets.



RETURN_METHOD_DRIFT
final public static int RETURN_METHOD_DRIFT(Code)
Drift into position after dropping widget



RETURN_METHOD_SNAP
final public static int RETURN_METHOD_SNAP(Code)
Snap into position after dropping widget



SHADOW_TYPE_BORDER
final public static int SHADOW_TYPE_BORDER(Code)
A border widget shadow



SHADOW_TYPE_CLONE
final public static int SHADOW_TYPE_CLONE(Code)
A cloned node widget shadow




Constructor Detail
WidgetDash
public WidgetDash()(Code)
Default contstructor. Sets default values for all of the properties.



WidgetDash
public WidgetDash(WidgetDashState state, WidgetContainerFactory factory)(Code)
Construct a WidgetPane given the previously stored WidgetDashState and a WidgetContainerFactory . Widgets listed in the WidgetPaneState will be added to this WidgetPane.
Parameters:
  state - The WidgetPaneState to construct from
Parameters:
  factory - The WidgetFactory to use when building Widgets




Method Detail
addActionListener
public void addActionListener(ActionListener l)(Code)
Adds an ActionListener to receive notification of user actions, i.e., widget position changes.
Parameters:
  l - the listener to add



getColumnCount
public int getColumnCount()(Code)
Return the number of columns in this WidgetPane column count, or -1 if it is not set.



getColumnSpacing
public Extent getColumnSpacing()(Code)
Get the horizontal spacing between columns The column spacing, or null if it is not set.



getDragContainer
public Component getDragContainer()(Code)
Get the current drag container being used. The current drag container, or null if one is not set.



getDraggedWidgetOpacity
public float getDraggedWidgetOpacity()(Code)
Get the current dragged widget opacity value. The current opacity value, or -1f if one is notset.



getDriftInterval
public long getDriftInterval()(Code)
Get the drift step interval (ms). The current step interval.
See Also:   WidgetDash.PROPERTY_DRIFT_INTERVAL



getDriftStep
public int getDriftStep()(Code)
Get the drift step amount (px) The current step amount
See Also:   WidgetDash.PROPERTY_DRIFT_STEP



getReturnMethod
public int getReturnMethod()(Code)
Get the current return method The current return method, or -1 if one is not set.
See Also:   WidgetDash.RETURN_METHOD_SNAP
See Also:   WidgetDash.RETURN_METHOD_DRIFT



getShadowBorder
public Border getShadowBorder()(Code)
Get the current shadow border. The current shadow border, or null if one is notset.
See Also:   WidgetDash.SHADOW_TYPE_BORDER



getShadowOpacity
public float getShadowOpacity()(Code)
Get the clone shadow opacity value The current opacity value, or -1f if one is notset.
See Also:   WidgetDash.SHADOW_TYPE_CLONE



getShadowType
public int getShadowType()(Code)
Return the current shadow type The current shadow type, or -1 if one is not set.
See Also:   WidgetDash.SHADOW_TYPE_CLONE
See Also:   WidgetDash.SHADOW_TYPE_BORDER



getWidgetDashState
public WidgetDashState getWidgetDashState()(Code)
Get the current state of this WidgetDash A new WidgetDashState object. This object should not changeafter being returned from this method (i.e., it should notreference internal structures)



getWidgetSpacing
public Extent getWidgetSpacing()(Code)
Get the vertical spacing between widgets in a column The vertical spacing, or null if it is not set.



isDragInBody
public boolean isDragInBody()(Code)
Return whether or not widgets are dragged in the HTML body element Drag-in-body status



isValidChild
public boolean isValidChild(Component child)(Code)
Only allow WidgetContainer objects to be added to the WidgetPane



processInput
public void processInput(String name, Object value)(Code)



removeActionListener
public void removeActionListener(ActionListener l)(Code)
Removes an ActionListener from being notified of user actions, i.e., widget position changes.
Parameters:
  l - the listener to remove



restore
public void restore(WidgetDashState state, WidgetContainerFactory factory)(Code)
Populate the WidgetPane given the previously stored WidgetDashState and a WidgetContainerFactory . Widgets listed in the WidgetPaneState will be added to this WidgetPane. Any widgets in the dash before this call will be removed.
Parameters:
  state - The WidgetPaneState to construct from
Parameters:
  factory - The WidgetFactory to use when building Widgets



setColumnCount
public void setColumnCount(int newCount)(Code)
Set the number of columns
Parameters:
  newCount - column count



setColumnSpacing
public void setColumnSpacing(Extent spacing)(Code)
Set the horizontal spacing between columns
Parameters:
  spacing - The column spacing



setDragContainer
public void setDragContainer(Component dragContainer)(Code)
Set the container (component) that widgets should be moved to when being dragged. For example, if the WidgetDash is a child of a SplitPane, dragging works best if the drag container is the parent SplitPane.
Parameters:
  dragContainer - The new drag container.



setDragInBody
public void setDragInBody(boolean dragInBody)(Code)
Sets whether or not widgets are dragged in the HTML body element
Parameters:
  dragInBody - New drag-in-body status
See Also:   WidgetDash.setDragContainer(Component)



setDraggedWidgetOpacity
public void setDraggedWidgetOpacity(float opacity)(Code)
Set the dragged widget opacity value. This value is applied to a widget when it is clicked to be dragged. The widget's original opacity is reset when it is dropped.
Parameters:
  opacity - The new opacity value.



setDriftInterval
public void setDriftInterval(long driftStep)(Code)
Set the drift step interval (ms).
Parameters:
  driftStep - The new step interval.
See Also:   WidgetDash.PROPERTY_DRIFT_INTERVAL



setDriftStep
public void setDriftStep(int driftStep)(Code)
Set the drift step amount (px)
Parameters:
  driftStep - The step amount.
See Also:   WidgetDash.PROPERTY_DRIFT_STEP



setReturnMethod
public void setReturnMethod(int returnMethod)(Code)
Set the method to be used when returning a dropped widget to its shadow's position.
See Also:   WidgetDash.RETURN_METHOD_SNAP
See Also:   WidgetDash.RETURN_METHOD_DRIFT
Parameters:
  returnMethod -



setShadowBorder
public void setShadowBorder(Border border)(Code)
Set the shadow border to use.
Parameters:
  border - The new shadow border to use
See Also:   WidgetDash.SHADOW_TYPE_BORDER



setShadowOpacity
public void setShadowOpacity(float opacity)(Code)
Set the clone shadow opacity value
Parameters:
  opacity - The new opacity value
See Also:   WidgetDash.SHADOW_TYPE_CLONE



setShadowType
public void setShadowType(int type)(Code)
Set the shadow type
Parameters:
  type - The new shadow type
See Also:   WidgetDash.SHADOW_TYPE_CLONE
See Also:   WidgetDash.SHADOW_TYPE_BORDER



setWidgetSpacing
public void setWidgetSpacing(Extent spacing)(Code)
Set the vertical spacing between widgets in a column
Parameters:
  spacing - The vertical spacing



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