|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jdesktop.jdnc.JNComponent
org.jdesktop.jdnc.JNForm
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class org.jdesktop.jdnc.JNComponent |
image, support, toolBar |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JNForm()
|
|
| Method Summary | |
JButton |
addAction(Action action)
Adds the specified action to the end of the tool bar for this component. |
protected void |
addToButtonPanel(JComponent component)
|
void |
bind(DataModel model)
Binds the form to each field in the specified DataModel object. |
void |
bind(DataModel model,
String fieldName)
Binds the form to the specified field in the DataModel object. |
void |
bind(Object bean)
Binds the form to each property in the specified JavaBean object. |
void |
bind(Object bean,
String propertyName)
Binds the form to the specified property in the JavaBean object. |
void |
bind(TabularDataModel tabularData)
Binds the form to each column in the specified TabularDataModel object. |
void |
bind(TabularDataModel tabularData,
String columnName)
Binds the form to the specified column in the TabularDataModel object. |
protected JComponent |
createButtonPanel()
|
JForm |
getForm()
|
void |
setBackground(Color background)
|
| Methods inherited from class org.jdesktop.jdnc.JNComponent |
addMessageListener, addSeparator, addToolBar, addToolBarComponent, doCommand, getBackgroundImage, getCommands, getComponent, getMessageListeners, getPopupMenu, hasCommand, paint, removeMessageListener, sendMessage, setBackgroundImage, setComponent, setFont, setPopupMenu |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JNForm()
| Method Detail |
public JForm getForm()
public void bind(TabularDataModel tabularData)
throws BindException
MetaData
object. And finally, if "autoLayout" is true,
it will also add and layout those components within the form.
tabularData - TabularDataModel being bound to the form
BindException - if there were errors when binding to the data modelMetaData
public void bind(TabularDataModel tabularData,
String columnName)
throws BindException
MetaData
object. If "autoLayout" is true,
it will also add and layout the component within the form.
tabularData - TabularDataModel being bound to the formcolumnName - String containing the name of the column
BindException - if there were errors when binding to the data model
public void bind(Object bean)
throws BindException
true,
it will also add and layout those components within the form.
bean - JavaBean object being bound to the form
BindException - if there were errors when binding to the data model
public void bind(Object bean,
String propertyName)
throws BindException
true,
it will also add and layout the component within the form.
bean - JavaBean object being bound to the formpropertyName - String containing the name of the property
BindException - if there were errors when binding to the data model
public void bind(DataModel model)
throws BindException
MetaData
object. If "autoLayout" is true,
it will also add and layout those components within the form.
model - DataModel object being bound to the form
BindException - if there were errors when binding to the data model
public void bind(DataModel model,
String fieldName)
throws BindException
MetaData
object. If "autoLayout" is true,
it will also add and layout the component within the form.
model - DataModel object being bound to the formfieldName - String containing the name of the field
BindException - if there were errors when binding to the data modelpublic JButton addAction(Action action)
JNComponent
addAction in class JNComponentaction - the action added to the tool bar
public void setBackground(Color background)
protected JComponent createButtonPanel()
protected void addToButtonPanel(JComponent component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||