|
|
||||
| Package com.dassault_systemes.catjdialog |
Class CATToolbar
|
| Class Hierarchy |
java.lang.Object
|
+-com.dassault_systemes.catjdialog.CATCallbackSource
|
+-com.dassault_systemes.catjdialog.CATDialog
|
+-com.dassault_systemes.catjdialog.CATToolbar
| Class Location |
| Class Description |
public class CATToolbar
The toolbar graphical component.
| Field Summary |
| int | VERTICAL |
| int | HORIZONTAL |
| Constructor Summary |
| CATToolbar(CATDialog iParent, String iName) |
| Method Summary |
| void | setModelURL(String iModelURL) |
| String | getModelURL() |
| CATToolbarCommandNotification | getCommandNotification() |
| int | getLayout() |
| void | setLayout(int iLayout) |
| CATMenuModel | getModel() |
| void | setModel(CATMenuModel iModel) |
| Field Detail |
int VERTICAL
Toolbar layout: vertical
int HORIZONTAL
Toolbar layout: horizontal
| Constructor Detail |
CATToolbar(CATDialog iParent, String iName)
Creates a toolbar with the specified parent and name. Default orientation is HORIZONTAL.
iParentiName| Method Detail |
void setModelURL(String iModelURL)
Sets the toolbar model URL.
The expected format is: <model classname>@<arg1>,<arg2>,...
<model classname> must have a constructor with the following signature:
void <Constructor>(CATDialog iDialog, String[] iArgs)
Note: This method allows to set the toolbar model inline in the XMLDlg file.
Example: <Toolbar Name="MyTools" ModelURL="com.mypackage.MyToolbarModel@myarg"...
iModelURLnull value empties the toolbar.
String getModelURL()
Returns the model URL (if any).
CATToolbarCommandNotification getCommandNotification()
Returns the toolbar command notification.
This notification is sent when an active button of the toolbar is pressed.
int getLayout()
Returns the toolbar orientation. Default orientation is HORIZONTAL.
void setLayout(int iLayout)
Sets the toolbar orientation.
iLayout
CATMenuModel getModel()
Returns the toolbar menu model.
null value means "empty toolbar".
void setModel(CATMenuModel iModel)
Sets the toolbar menu model.
iModelnull value empties the toolbar.