|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.sssw.rt.atlas.AtPanel | +--com.sssw.rt.form.PvBasePanel | +--com.sssw.rt.form.PvBaseContainer
Internal SilverStream class. It is the base class for container controls such as AgfForm and AgcTabControl.
Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Fields inherited from class com.sssw.rt.atlas.AtPanel |
BGIMAGE_DRAW_CENTERED,
BGIMAGE_DRAW_NORMAL,
BGIMAGE_DRAW_STRETCH,
BGIMAGE_DRAW_TILED |
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 |
Constructor Summary | |
PvBaseContainer()
|
Method Summary | |
void |
acceptValues()
For each control on the form, instructs the control to accept its current value. |
void |
addControl(Component child)
Deprecated. use Container.add(Component) |
void |
addControlAt(Component child,
int zpos)
Deprecated. use Container.add(Component, int) |
Component |
getControl(int index)
Deprecated. use Container.getComponent(int) |
int |
getControlCount()
Deprecated. use Container.getComponentCount() |
protected Component[] |
getUserDefinedTabOrder()
Gets the tab order of controls on the form or other container. |
void |
removeControl(Component child)
Deprecated. use Container.remove(Component) |
void |
setTabOrder(Component[] taborder)
Deprecated. as of SilverStream 3.0. Use PvBaseContainer.setUserDefinedTabOrder(Component[]) . |
void |
setUserDefinedTabOrder(Component[] taborder)
Specifies the tab order of the controls in the container. |
Methods inherited from class com.sssw.rt.form.PvBasePanel |
getBackgroundColor,
getFontIdentifier,
setBackgroundColor,
setFontIdentifier |
Methods inherited from class com.sssw.rt.atlas.AtPanel |
addImpl,
addNotify,
clientPaint,
clientPaint,
deliverMouseEvent,
deliverMouseMoveEvent,
doAtCommand,
drawTiledImage,
enableAtCommands,
getBackgroundImage,
getBackgroundImageMode,
getHelper,
getTransparent,
hide,
hideToolTip,
imageUpdate,
isFocusTraversable,
isOptimizedDrawingEnabled,
ownedImage,
paintBorder,
paintComponent,
paintImmediately,
paintImmediately,
paintNow,
preprocessKeyEvent,
processEvent,
reshape,
setBackgroundImage,
setBackgroundImageMode,
setTransparent,
show,
showToolTip |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
printComponents,
processContainerEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Methods implemented from interface com.sssw.rt.form.AgiControl |
getComponent,
getHelpInfo,
setHelpInfo |
Methods implemented from interface com.sssw.rt.util.AgiTabstopHandler |
getTabOrder |
Constructor Detail |
public PvBaseContainer()
Method Detail |
public void addControl(Component child)
Container.add(Component)
child
- the name of the control to add. The control must already be defined.The following example illustrates how to add a control to the top left corner of a form.
ControlName1.setBounds(0,0,100,10); FormName.addControl(ControlName1);
PvBaseContainer.removeControl(Component)
,
PvBaseContainer.addControlAt(Component, int)
public void addControlAt(Component child, int zpos)
Container.add(Component, int)
child
- the control to add. The control must already be defined.zpos
- specifies the control's back-to-front stacking order on the form
The stacking order is in relation to the other controls on the form.SilverStream keeps a list of the controls that are added to the form. The order of the controls in this list define the control's back-to-front stacking order. If a z position is not specified when a control is added, the control gets added to the end of the list. The list is ordered so that the control at the end of the list is the control at the top of the stacking order.
The following code fragment illustrates how to add the MyLabel control in front of the first five controls.
MyLabel.setBounds(50,50,100,10); addControlAt(MyLabel,5);
PvBaseContainer.addControl(Component)
,
AgiControl
public void removeControl(Component child)
Container.remove(Component)
child
- the control to removeThe Tab Panel control is zero-based so the first pane is 0. Reference the control using its name (specified by the Name property).
The following code fragment illustrates how to use the removeControl()
method.
AgiControl control; control = ControlName1.getControl(3); ControlName1.removeControl(AgiControl);
PvBaseContainer.addControl(Component)
,
PvBaseContainer.addControlAt(Component, int)
,
AgiControl
public int getControlCount()
Container.getComponentCount()
int numberOfControls; numberOfControls = ControlName1.getControlCount();
public Component getControl(int index)
Container.getComponent(int)
index
- the index of the control to removeDetermine a control's index by enumerating the controls on a form.
The following code fragment illustrates how to enumerate the controls to determine the index.
// Get all controls from the current form. int controlCount;
public void acceptValues()
Use acceptValues()
to ensure the data updated in the database is the
current value in all controls.
In code that handles a menu event, call acceptValues()
before calling:
updateRows()
for any AgcData control other than the form's
default agData instance variable
updateTransactionally()
for AgcData controls and the agData instance variable
validateAll()
, which manually begins the global validation process
You don't need to call acceptValues()
before agData.updateRows()
, because
updateRows()
calls acceptValues()
internally.
acceptValues(); dataCompanies.updateRows();
In a menuItemSelected event, this code calls updateRows()
for the
default agData instance variable. Calling acceptValues()
is not necessary.
agData.updateRows();
AgiRowSetManager.updateRows()
,
AgoBindingManager.validateAll()
,
AgcDataPrimary.updateTransactionally(AgcData[])
protected Component[] getUserDefinedTabOrder()
PvBaseContainer.setUserDefinedTabOrder(Component[])
public void setUserDefinedTabOrder(Component[] taborder)
taborder[]
- an array of Components, which are the controls in this container, in the desired tab order.
The following code fragment illustrates how to use the setTabOrder()
method.
Component[] taborder = { TextField1, OKButton, CancelButton }; ControlName1.setUserDefinedTabOrder(taborder);
PvBaseContainer.getUserDefinedTabOrder()
public void setTabOrder(Component[] taborder)
PvBaseContainer.setUserDefinedTabOrder(Component[])
.
taborder[]
- an array of Components in tab order
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |