|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JLabel | +--com.klg.jclass.datasource.swing.DSdbJLabel
This class binds a JLabel to a column in the current row of the datasource.
Nested Class Summary |
Nested classes inherited from class javax.swing.JLabel |
JLabel.AccessibleJLabel |
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 | |
protected static String |
nullDatabindingText
|
protected int |
textMargin
|
Fields inherited from class javax.swing.JLabel |
labelFor |
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 javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
DSdbJLabel()
Creates a new DSdbJLabel component. |
|
DSdbJLabel(com.klg.jclass.datasource.BindingModel binding,
String columnName)
Create and bind to a Binding |
|
DSdbJLabel(com.klg.jclass.datasource.DataModel dataModel,
com.klg.jclass.datasource.MetaDataModel metaDataModel,
String columnName)
Creates a new DSdbJLabel component and binds it to a particular column in a MetaDataModel. |
Method Summary | |
String |
getDataBinding()
Returns the data binding hierarchy string, starting from a JCTreeData instance name and containing full sequence of MetaDataModel levels starting from the root to the level the table is bound with. |
Dimension |
getPreferredSize()
Returns the preferred size of the component. |
void |
paint(Graphics gc)
Override to display default text if unbound. |
void |
setDataBinding(com.klg.jclass.datasource.BindingModel b,
String columnName)
Bind to Binding and column. |
void |
setDataBinding(com.klg.jclass.datasource.DataModel dataModel,
com.klg.jclass.datasource.MetaDataModel metaDataModel,
String columnName)
Sets the parameters for binding the component to a particular column in a MetaDataModel. |
void |
setDataBinding(com.klg.jclass.datasource.DataModel dataModel,
String metaPath)
Sets the data source to a DataModel and binds the MetaData to the MetaDataModel represented by a "path" of MetaDataModel descriptions separated by '|' (e.g. |
void |
setDataBinding(String dataBinding)
Sets the data source to the path of DataModel, MetaDataModel descriptions and column name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final String nullDatabindingText
protected int textMargin
Constructor Detail |
public DSdbJLabel()
public DSdbJLabel(com.klg.jclass.datasource.DataModel dataModel, com.klg.jclass.datasource.MetaDataModel metaDataModel, String columnName)
NodeProperties.setDataSource(java.lang.Object)
public DSdbJLabel(com.klg.jclass.datasource.BindingModel binding, String columnName)
Method Detail |
public void setDataBinding(com.klg.jclass.datasource.DataModel dataModel, com.klg.jclass.datasource.MetaDataModel metaDataModel, String columnName)
public void setDataBinding(com.klg.jclass.datasource.DataModel dataModel, String metaPath)
public void setDataBinding(String dataBinding)
public void setDataBinding(com.klg.jclass.datasource.BindingModel b, String columnName)
public String getDataBinding()
public void paint(Graphics gc)
paint
in class JComponent
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |