Java Doc for DesignFormComponent.java in  » Swing-Library » abeille-forms-designer » com » jeta » swingbuilder » gui » editor » 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 » Swing Library » abeille forms designer » com.jeta.swingbuilder.gui.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JPanel
   com.jeta.forms.gui.form.GridComponent
      com.jeta.forms.gui.form.FormComponent
         com.jeta.swingbuilder.gui.editor.DesignFormComponent

DesignFormComponent
public class DesignFormComponent extends FormComponent implements GridViewListener(Code)



Constructor Summary
public  DesignFormComponent()
     Creates a DesignFormComponent instance.
public  DesignFormComponent(String id, JETABean jbean, GridView parentView, boolean embedded)
     Creates a DesignFormComponent instance with the specified id, child bean, and parent view.

Method Summary
public  JPanelgetButtonPanel()
     The panel at the top of this component that contains the expand/hide and edit buttons for this form.
public  GridOverlaygetChildOverlay()
     Returns the component that renders the grid lines for the GridView associated with this form.
public  AbstractButtongetEditButton()
     Returns the control button used to open a nested form in the editor.
public  AbstractButtongetExpandButton()
     Returns the control button used to expand/hide a nested form in the editor.
public  AbstractButtongetGridButton()
     Returns the control button used to show/hide the grid lines of a form in the editor.
public  voidgridChanged(GridViewEvent evt)
     GridViewListener implementation.
public  booleanisGridViewVisible()
     Returns the flag that indicates if the grid view associated with this form is visible.
protected  FormComponentopenLinkedForm(FormMemento fm)
     Creates and initializes a FormComponent from the given form memento.
protected  voidpostSetState(ComponentMemento cm)
     Performs any final initialization of this form component after it's state has been restored.
protected  voidsetBean(JETABean jbean)
     Override GridComponent implementation so we can add the child to this container for the design view.
public  voidsetControlButtonsVisible(boolean bvis)
    
public  voidsetGridViewVisible(boolean bvis)
     Shows or hides the grid view associated with this form.
public  voidsetState(ComponentMemento memento)
     Resets this component from a previously saved state.


Constructor Detail
DesignFormComponent
public DesignFormComponent()(Code)
Creates a DesignFormComponent instance.



DesignFormComponent
public DesignFormComponent(String id, JETABean jbean, GridView parentView, boolean embedded) throws FormException(Code)
Creates a DesignFormComponent instance with the specified id, child bean, and parent view.
Parameters:
  id - the unique id for this form.
Parameters:
  jbean - the underlying GridView
Parameters:
  parentView - the parent for this form.
Parameters:
  embedded - flag that indicates if this form is embedded




Method Detail
getButtonPanel
public JPanel getButtonPanel()(Code)
The panel at the top of this component that contains the expand/hide and edit buttons for this form. These buttons are only visible during design mode. the panel that contains the control buttons for the form.



getChildOverlay
public GridOverlay getChildOverlay()(Code)
Returns the component that renders the grid lines for the GridView associated with this form. the GridOverlay component associated with the GridView that iscontained within this component.



getEditButton
public AbstractButton getEditButton()(Code)
Returns the control button used to open a nested form in the editor. This button is only visible in design mode. the button used to open a nested form in the editor



getExpandButton
public AbstractButton getExpandButton()(Code)
Returns the control button used to expand/hide a nested form in the editor. This button is only visible in design mode. the button used to expand/hide a nested form



getGridButton
public AbstractButton getGridButton()(Code)
Returns the control button used to show/hide the grid lines of a form in the editor. This button is only visible in design mode. the button used to show/hide the grid lines



gridChanged
public void gridChanged(GridViewEvent evt)(Code)
GridViewListener implementation. This method is called when events are fired from the child GridView contained by this FormComponent. All events are forwarded up the listener chain.
Parameters:
  evt - the event fired by the GridView contained by this form.



isGridViewVisible
public boolean isGridViewVisible()(Code)
Returns the flag that indicates if the grid view associated with this form is visible. This is different than showing the grid lines. This call determines if the underlying components in the view in addition to the grid lines are visible.



openLinkedForm
protected FormComponent openLinkedForm(FormMemento fm) throws FormException(Code)
Creates and initializes a FormComponent from the given form memento.



postSetState
protected void postSetState(ComponentMemento cm)(Code)
Performs any final initialization of this form component after it's state has been restored. The main operation is to add empty components where needed. When in design mode, every cell in the grid has a GridComponent. The reason is because we need to enforce a minimum size for the cell when the user sets the row/col size to preferred. If not, the cell size would be zero if nothing were there. However, in run mode, we don't want to create an empty component for every single cell. For example, a 20x20 grid would require 400 components. To prevent this, we only add 1 empty component per row and column. This allows the runtime form to look approximately like the design time forms with rows/cols that have no components. We use the grid_cache to keep track of which columns and rows have had empty components added.



setBean
protected void setBean(JETABean jbean)(Code)
Override GridComponent implementation so we can add the child to this container for the design view.



setControlButtonsVisible
public void setControlButtonsVisible(boolean bvis)(Code)
Shows/hides the control buttons at the top of this component



setGridViewVisible
public void setGridViewVisible(boolean bvis)(Code)
Shows or hides the grid view associated with this form. This is different than showing the grid lines. This call also shows/hides the underlying components in the view in addition to the grid lines.



setState
public void setState(ComponentMemento memento) throws FormException(Code)
Resets this component from a previously saved state.
Parameters:
  memento -



Methods inherited from com.jeta.forms.gui.form.FormComponent
public void _postInitialize(FormPanel panel, Container cc)(Code)(Java Doc)
public static FormComponent create()(Code)(Java Doc)
public String getAbsolutePath()(Code)(Java Doc)
public int getCellHeight()(Code)(Java Doc)
public int getCellWidth()(Code)(Java Doc)
public int getCellX()(Code)(Java Doc)
public int getCellY()(Code)(Java Doc)
public GridView getChildView()(Code)(Java Doc)
public int getColumnCount()(Code)(Java Doc)
public FormMemento getExternalState(StateRequest si) throws FormException(Code)(Java Doc)
public String getFileName()(Code)(Java Doc)
public FocusPolicyMemento getFocusPolicy()(Code)(Java Doc)
public GridComponent getGridComponent(int col, int row)(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public static FormComponent getParentForm(Component comp)(Code)(Java Doc)
public FormComponent getParentForm()(Code)(Java Doc)
public String getRelativePath()(Code)(Java Doc)
public int getRowCount()(Code)(Java Doc)
public GridComponent getSelectedComponent()(Code)(Java Doc)
public ComponentMemento getState(StateRequest si) throws FormException(Code)(Java Doc)
public static FormComponent getTopLevelForm(Component comp)(Code)(Java Doc)
public Iterator gridIterator()(Code)(Java Doc)
public boolean isEmbedded()(Code)(Java Doc)
public boolean isLinked()(Code)(Java Doc)
public boolean isTopLevelForm()(Code)(Java Doc)
protected FormComponent openLinkedForm(FormMemento fm) throws FormException(Code)(Java Doc)
public void postInitialize(FormPanel panel)(Code)(Java Doc)
protected void postSetState(ComponentMemento cm)(Code)(Java Doc)
public void print()(Code)(Java Doc)
public void revalidate()(Code)(Java Doc)
public void setAbsolutePath(String path)(Code)(Java Doc)
protected void setBean(JETABean jbean)(Code)(Java Doc)
public void setControlButtonsVisible(boolean bVisible)(Code)(Java Doc)
public void setFocusPolicy(FocusPolicyMemento fm)(Code)(Java Doc)
public void setSelected(boolean bsel)(Code)(Java Doc)
public void setState(ComponentMemento memento) throws FormException(Code)(Java Doc)
public void setTopLevelForm(boolean topLevel)(Code)(Java Doc)

Methods inherited from com.jeta.forms.gui.form.GridComponent
public void addListener(GridCellListener listener)(Code)(Java Doc)
public void fireGridCellEvent(GridCellEvent evt)(Code)(Java Doc)
public JETABean getBean()(Code)(Java Doc)
public Component getBeanDelegate()(Code)(Java Doc)
public String getBeanName()(Code)(Java Doc)
public int getCellHeight()(Code)(Java Doc)
public int getCellWidth()(Code)(Java Doc)
public int getCellX()(Code)(Java Doc)
public int getCellY()(Code)(Java Doc)
public int getColumn()(Code)(Java Doc)
public int getColumnSpan()(Code)(Java Doc)
public ComponentConstraints getConstraints()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public CellKeyboardHandler getKeyboardHandler()(Code)(Java Doc)
public Dimension getMinimumSize()(Code)(Java Doc)
public CellMouseHandler getMouseHandler()(Code)(Java Doc)
public GridView getParentView()(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public int getRow()(Code)(Java Doc)
public int getRowSpan()(Code)(Java Doc)
abstract public ComponentMemento getState(StateRequest si) throws FormException(Code)(Java Doc)
public boolean hasBean()(Code)(Java Doc)
public boolean isSelected()(Code)(Java Doc)
public boolean isShowing()(Code)(Java Doc)
public void postInitialize(FormPanel panel)(Code)(Java Doc)
abstract public void print()(Code)(Java Doc)
public void removeListener(GridCellListener listener)(Code)(Java Doc)
protected void setBean(JETABean jbean)(Code)(Java Doc)
public void setKeyboardHandler(CellKeyboardHandler handler)(Code)(Java Doc)
public void setMouseHandler(CellMouseHandler handler)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setParentView(GridView view)(Code)(Java Doc)
public void setSelected(boolean sel)(Code)(Java Doc)
abstract public void setState(ComponentMemento memento) throws FormException(Code)(Java Doc)

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.