|
|
|||||
| 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 |
| public static final int | HORIZONTAL
Toolbar layout: horizontal |
| public static final int | VERTICAL
Toolbar layout: vertical |
| Constructor Summary |
| CATToolbar(CATDialog iParent, String iName)
Creates a toolbar with the specified parent and name. |
| Method Summary |
| public CATToolbarCommandNotification | getCommandNotification()
Returns the toolbar command notification. |
| public int | getLayout()
Returns the toolbar orientation. |
| public CATMenuModel | getModel()
Returns the toolbar menu model. |
| public String | getModelURL()
Returns the model URL (if any). |
| public void | setLayout(int iLayout)
Sets the toolbar orientation. |
| public void | setModel(CATMenuModel iModel)
Sets the toolbar menu model. |
| public void | setModelURL(String iModelURL)
Sets the toolbar model URL. |
| Field Detail |
public static final int HORIZONTAL
Toolbar layout: horizontal
public static final int VERTICAL
Toolbar layout: vertical
| Constructor Detail |
CATToolbar(CATDialog iParent, String iName)
Creates a toolbar with the specified parent and name. Default orientation is HORIZONTAL.
iParentiName| Method Detail |
public CATToolbarCommandNotification getCommandNotification()
Returns the toolbar command notification.
This notification is sent when an active button of the toolbar is pressed.
public int getLayout()
Returns the toolbar orientation. Default orientation is HORIZONTAL.
public CATMenuModel getModel()
Returns the toolbar menu model.
null value means "empty toolbar".
public String getModelURL()
Returns the model URL (if any).
public void setLayout(int iLayout)
Sets the toolbar orientation.
iLayout
public void setModel(CATMenuModel iModel)
Sets the toolbar menu model.
iModelnull value empties the toolbar.
public 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.