|
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.JPanel | +--com.klg.jclass.datasource.swing.DSdbJNavigator
This component navigates the result set of a data bean and manipulate the data source inserting and deleting records, cancel, save an requery data in the data source.
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 | |
protected int |
border
|
protected Color |
buttonBackground
|
protected Color |
buttonForeground
|
protected int |
buttons
|
protected com.klg.jclass.datasource.swing.DSdbJNavigator.DSNavigatorDataBinding |
dataBinding
|
protected com.klg.jclass.datasource.swing.NavigatorButton |
delete
|
protected com.klg.jclass.datasource.swing.NavigatorButton |
first
|
protected com.klg.jclass.datasource.swing.NavigatorButton |
insert
|
protected com.klg.jclass.datasource.swing.NavigatorButton |
last
|
protected int |
leftButtons
|
protected com.klg.jclass.datasource.swing.NavigatorButton |
menu
|
protected com.klg.jclass.datasource.swing.NavigatorButton |
next
|
protected com.klg.jclass.datasource.util.NavigatorPopupMenu |
popupMenu
|
protected com.klg.jclass.datasource.swing.NavigatorButton |
previous
|
protected String |
rowLabel
|
protected Color |
statusBackground
|
protected Color |
statusForeground
|
protected boolean |
statusVisible
|
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 | |
DSdbJNavigator()
Creates a new DSdbJNavigator component. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Invoked when an action occurs. |
protected void |
cancelAll()
|
protected void |
cancelCurrent()
|
protected void |
commitAll()
|
protected void |
commitCurrent()
|
protected void |
delete()
|
void |
doLayout()
Lays out the component. |
Color |
getButtonBackground()
Gets ButtonBackground property value. |
Color |
getButtonForeground()
Gets ButtonForeground property value. |
boolean |
getCommandVisible()
Gets CommandVisible property value. |
String |
getDataBinding()
Returns the data binding hierarchy string, starting from a JCTreeData instance name and containing full sequence of MetaDataModel level descriptions separated by '|' starting from the root to the level the component is bound with (e.g. |
boolean |
getDeleteVisible()
Gets DeleteVisible property value. |
boolean |
getFirstVisible()
Gets FirstVisible property value. |
boolean |
getInsertVisible()
Gets InsertVisible property value. |
boolean |
getLastVisible()
Gets LastVisible property value. |
Dimension |
getMaximumSize()
Returns the maximum size of the component. |
Dimension |
getMinimumSize()
Returns the minimum size of the component. |
boolean |
getNextVisible()
Gets NextVisible property value. |
Dimension |
getPreferredSize()
Returns the preferred size of the component. |
boolean |
getPreviousVisible()
Gets PreviousVisible property value. |
Color |
getStatusBackground()
Gets StatusBackground property value. |
Color |
getStatusForeground()
Gets StatusForeground property value. |
boolean |
getStatusVisible()
Gets StatusVisible property value. |
protected void |
goToRow()
Opens a dialog to specify current row index and moves the current row position in the data source |
protected com.klg.jclass.datasource.swing.NavigatorButton |
initButton(com.klg.jclass.datasource.swing.NavigatorButton button,
String toolTipText)
Initializes and adds a button to the component. |
protected void |
insert()
|
protected int |
minimumWidth()
Returns the minimum width of the component. |
void |
paint(Graphics gc)
Paints the component. |
protected int |
preferredHeight()
Returns the preferred height of the component. |
protected int |
preferredWidth()
Returns the preferred width of the component. |
void |
refresh()
Resets and repaints component. |
protected void |
requeryAll()
|
protected void |
requeryCurrent()
|
protected void |
reset()
Resets the status line according to the current data binding state, metadata model description, current record index and total number of rows in the result set. |
protected void |
setBtnBackground(Color color)
Sets background for all buttons |
protected void |
setBtnForeground(Color color)
Sets foreground for all buttons |
void |
setButtonBackground(Color color)
Sets ButtonBackground property value. |
void |
setButtonForeground(Color color)
Sets ButtonForeground property value. |
void |
setCommandVisible(boolean b)
Sets CommandVisible property value. |
void |
setCurrentRow()
Saves current data source row position and updates the component. |
void |
setDataBinding(com.klg.jclass.datasource.BindingModel binding,
boolean parameterNotCurrentlyUsed)
Binds the component to a particular MetaDataModel in the DataModel data source. |
void |
setDataBinding(com.klg.jclass.datasource.DataModel dataModel,
com.klg.jclass.datasource.MetaDataModel metaDataModel)
|
void |
setDataBinding(com.klg.jclass.datasource.DataModel dataModel,
String metaPath)
Binds the component to a particular MetaDataModel in the DataModel data source represented by a "path" of MetaDataModel descriptions separated by '|' (e.g. |
void |
setDataBinding(String metaPath)
Binds the component to a particular MetaDataModel in the DataModel data source represented by a "path" of DataModel instance name and MetaDataModel descriptions separated by '|' (e.g. |
void |
setDeleteVisible(boolean b)
Sets DeleteVisible property value. |
void |
setFirstVisible(boolean b)
Sets FirstVisible property value. |
void |
setInsertVisible(boolean b)
Sets InsertVisible property value. |
void |
setLastVisible(boolean b)
Sets LastVisible property value. |
void |
setLayout(LayoutManager mgr)
Sets the layout manager for this container. |
void |
setNextVisible(boolean b)
Sets NextVisible property value. |
void |
setPreviousVisible(boolean b)
Sets PreviousVisible property value. |
void |
setStatusBackground(Color color)
Sets StatusBackground property value. |
void |
setStatusForeground(Color color)
Sets StatusForeground property value. |
void |
setStatusVisible(boolean b)
Sets StatusVisible property value. |
protected boolean |
showPopupMenu(int x,
int y)
Popups a menu. |
void |
update(Graphics graphics)
Overwrites default update to avoid the component to be cleared and filled it with the background color that causes flickering. |
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 |
Field Detail |
protected Color statusBackground
protected Color statusForeground
protected boolean statusVisible
protected Color buttonBackground
protected Color buttonForeground
protected int buttons
protected int leftButtons
protected com.klg.jclass.datasource.swing.NavigatorButton first
protected com.klg.jclass.datasource.swing.NavigatorButton previous
protected com.klg.jclass.datasource.swing.NavigatorButton insert
protected com.klg.jclass.datasource.swing.NavigatorButton delete
protected com.klg.jclass.datasource.swing.NavigatorButton next
protected com.klg.jclass.datasource.swing.NavigatorButton last
protected com.klg.jclass.datasource.swing.NavigatorButton menu
protected String rowLabel
protected int border
protected com.klg.jclass.datasource.util.NavigatorPopupMenu popupMenu
protected com.klg.jclass.datasource.swing.DSdbJNavigator.DSNavigatorDataBinding dataBinding
Constructor Detail |
public DSdbJNavigator()
Method Detail |
protected com.klg.jclass.datasource.swing.NavigatorButton initButton(com.klg.jclass.datasource.swing.NavigatorButton button, String toolTipText)
public void setCurrentRow()
public void setDataBinding(com.klg.jclass.datasource.BindingModel binding, boolean parameterNotCurrentlyUsed)
binding
- the Binding to use.parameterNotCurrentlyUsed
- not currently usedpublic void setDataBinding(com.klg.jclass.datasource.DataModel dataModel, com.klg.jclass.datasource.MetaDataModel metaDataModel)
public void setDataBinding(com.klg.jclass.datasource.DataModel dataModel, String metaPath)
public void setDataBinding(String metaPath)
public String getDataBinding()
public Color getStatusBackground()
setStatusBackground(java.awt.Color)
public void setStatusBackground(Color color)
getStatusBackground()
public Color getStatusForeground()
setStatusForeground(java.awt.Color)
public void setStatusForeground(Color color)
getStatusForeground()
public boolean getStatusVisible()
setStatusVisible(boolean)
public void setStatusVisible(boolean b)
getStatusVisible()
public Color getButtonBackground()
setButtonBackground(java.awt.Color)
public void setButtonBackground(Color color)
getButtonBackground()
public Color getButtonForeground()
setButtonForeground(java.awt.Color)
public void setButtonForeground(Color color)
getButtonForeground()
public boolean getFirstVisible()
setFirstVisible(boolean)
public void setFirstVisible(boolean b)
getFirstVisible()
public boolean getPreviousVisible()
setPreviousVisible(boolean)
public void setPreviousVisible(boolean b)
getPreviousVisible()
public boolean getCommandVisible()
setCommandVisible(boolean)
public void setCommandVisible(boolean b)
getCommandVisible()
public boolean getNextVisible()
setNextVisible(boolean)
public void setNextVisible(boolean b)
getNextVisible()
public boolean getLastVisible()
setLastVisible(boolean)
public void setLastVisible(boolean b)
getLastVisible()
public boolean getInsertVisible()
setInsertVisible(boolean)
public void setInsertVisible(boolean b)
getInsertVisible()
public boolean getDeleteVisible()
setDeleteVisible(boolean)
public void setDeleteVisible(boolean b)
getDeleteVisible()
protected int preferredWidth()
protected int minimumWidth()
protected int preferredHeight()
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
public Dimension getMaximumSize()
getMaximumSize
in class JComponent
public void doLayout()
doLayout
in class Container
public void update(Graphics graphics)
update
in class JComponent
public void paint(Graphics gc)
paint
in class JComponent
protected void reset()
public void refresh()
public final void setLayout(LayoutManager mgr)
setLayout
in class Container
protected void setBtnBackground(Color color)
protected void setBtnForeground(Color color)
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
protected boolean showPopupMenu(int x, int y)
protected void insert()
protected void delete()
protected void cancelCurrent()
protected void cancelAll()
protected void requeryCurrent()
protected void requeryAll()
protected void commitCurrent()
protected void commitAll()
protected void goToRow()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |