import org.scilab.modules.gui.canvas.ScilabCanvas;
import org.scilab.modules.gui.canvas.ScilabCanvasBridge;
import org.scilab.modules.gui.canvas.SimpleCanvas;
-import org.scilab.modules.gui.checkbox.CheckBox;
-import org.scilab.modules.gui.checkbox.ScilabCheckBoxBridge;
-import org.scilab.modules.gui.checkbox.SimpleCheckBox;
import org.scilab.modules.gui.checkboxmenuitem.CheckBoxMenuItem;
import org.scilab.modules.gui.checkboxmenuitem.ScilabCheckBoxMenuItemBridge;
import org.scilab.modules.gui.checkboxmenuitem.SimpleCheckBoxMenuItem;
import org.scilab.modules.gui.contextmenu.ContextMenu;
import org.scilab.modules.gui.contextmenu.ScilabContextMenuBridge;
import org.scilab.modules.gui.contextmenu.SimpleContextMenu;
-import org.scilab.modules.gui.editbox.EditBox;
-import org.scilab.modules.gui.editbox.ScilabEditBoxBridge;
-import org.scilab.modules.gui.editbox.SimpleEditBox;
import org.scilab.modules.gui.events.callback.CommonCallBack;
import org.scilab.modules.gui.filechooser.FileChooser;
import org.scilab.modules.gui.filechooser.ScilabFileChooserBridge;
import org.scilab.modules.gui.fontchooser.FontChooser;
import org.scilab.modules.gui.fontchooser.ScilabFontChooserBridge;
import org.scilab.modules.gui.fontchooser.SimpleFontChooser;
-import org.scilab.modules.gui.frame.Frame;
-import org.scilab.modules.gui.frame.ScilabFrameBridge;
-import org.scilab.modules.gui.frame.SimpleFrame;
import org.scilab.modules.gui.helpbrowser.HelpBrowser;
import org.scilab.modules.gui.helpbrowser.ScilabHelpBrowserBridge;
import org.scilab.modules.gui.helpbrowser.SimpleHelpBrowser;
-import org.scilab.modules.gui.label.Label;
-import org.scilab.modules.gui.label.ScilabLabelBridge;
-import org.scilab.modules.gui.label.SimpleLabel;
-import org.scilab.modules.gui.listbox.ListBox;
-import org.scilab.modules.gui.listbox.ScilabListBoxBridge;
-import org.scilab.modules.gui.listbox.SimpleListBox;
import org.scilab.modules.gui.menu.Menu;
import org.scilab.modules.gui.menu.ScilabMenuBridge;
import org.scilab.modules.gui.menu.SimpleMenu;
import org.scilab.modules.gui.messagebox.MessageBox;
import org.scilab.modules.gui.messagebox.ScilabMessageBoxBridge;
import org.scilab.modules.gui.messagebox.SimpleMessageBox;
-import org.scilab.modules.gui.popupmenu.PopupMenu;
-import org.scilab.modules.gui.popupmenu.ScilabPopupMenuBridge;
-import org.scilab.modules.gui.popupmenu.SimplePopupMenu;
-import org.scilab.modules.gui.pushbutton.PushButton;
-import org.scilab.modules.gui.pushbutton.ScilabPushButtonBridge;
-import org.scilab.modules.gui.pushbutton.SimplePushButton;
-import org.scilab.modules.gui.radiobutton.RadioButton;
-import org.scilab.modules.gui.radiobutton.ScilabRadioButtonBridge;
-import org.scilab.modules.gui.radiobutton.SimpleRadioButton;
import org.scilab.modules.gui.separator.ScilabSeparatorBridge;
import org.scilab.modules.gui.separator.Separator;
-import org.scilab.modules.gui.slider.ScilabSliderBridge;
-import org.scilab.modules.gui.slider.SimpleSlider;
-import org.scilab.modules.gui.slider.Slider;
import org.scilab.modules.gui.tab.ScilabTabBridge;
import org.scilab.modules.gui.tab.SimpleTab;
import org.scilab.modules.gui.tab.Tab;
import org.scilab.modules.gui.uidisplaytree.ScilabUiDisplayTreeBridge;
import org.scilab.modules.gui.uidisplaytree.SimpleUiDisplayTree;
import org.scilab.modules.gui.uidisplaytree.UiDisplayTree;
-import org.scilab.modules.gui.uitable.ScilabUiTableBridge;
-import org.scilab.modules.gui.uitable.SimpleUiTable;
-import org.scilab.modules.gui.uitable.UiTable;
import org.scilab.modules.gui.utils.Position;
import org.scilab.modules.gui.utils.Size;
import org.scilab.modules.gui.window.ScilabWindowBridge;
}
/**
- * Add a PushButton to the ToolBar.
- * @param toolBar the toolBar which we want to add the PushButton to
- * @param pushButton the PushButton to add.
- */
- public static void add(ToolBar toolBar, PushButton pushButton) {
- ScilabToolBarBridge.add(toolBar, pushButton);
- }
-
- /**
* Add a Separator to a Toolbar
* @param toolbar the Toolbar which we want to add the Separator to
*/
return ScilabToolBarBridge.isVisible(toolbar);
}
-
- /****************/
- /* Frame Bridge */
- /****************/
-
- /**
- * Creates a new Frame
- * @return the created Frame
- */
- public static SimpleFrame createFrame() {
- return ScilabFrameBridge.createFrame();
- }
-
- /**
- * Sets the Text of a Frame
- * @param frame the Frame we want to set the Text of
- * @param newText the Text to set for the Frame
- */
- public static void setText(Frame frame, String newText) {
- ScilabFrameBridge.setText(frame, newText);
- }
-
- /**
- * Gets the text of an Frame
- * @param frame the Frame we want to get the text of
- * @return the text of the Frame
- */
- public static String getText(Frame frame) {
- return ScilabFrameBridge.getText(frame);
- }
-
- /**
- * Draws a Scilab Frame
- * @param frame the Frame to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(Frame frame) {
- ScilabFrameBridge.draw(frame);
- }
-
- /**
- * Gets the dimensions (width and height) of a Scilab Frame
- * @param frame the Frame we want to get the dimensions of
- * @return the size of the frame
- * @see org.scilab.modules.ihm.UIElement#getDims()
- */
- public static Size getDims(Frame frame) {
- return ScilabFrameBridge.getDims(frame);
- }
-
- /**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab frame
- * @param frame the frame we want to get the position of
- * @return the position of the frame
- * @see org.scilab.modules.ihm.UIElement#getPosition()
- */
- public static Position getPosition(Frame frame) {
- return ScilabFrameBridge.getPosition(frame);
- }
-
- /**
- * Gets the visibility status of a Scilab Frame
- * @param frame the frame we want to get the visiblity status of
- * @return the visibility status of the frame (true if the frame is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
- */
- public static boolean isVisible(Frame frame) {
- return ScilabFrameBridge.isVisible(frame);
- }
-
- /**
- * Sets the dimensions (width and height) of a Scilab Frame
- * @param frame the frame we want to set the dimensions of
- * @param newSize the size we want to set to the frame
- * @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
- */
- public static void setDims(Frame frame, Size newSize) {
- ScilabFrameBridge.setDims(frame, newSize);
- }
-
- /**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab frame
- * @param frame the frame we want to set the position of
- * @param newPosition the position we want to set to the frame
- * @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
- */
- public static void setPosition(Frame frame, Position newPosition) {
- ScilabFrameBridge.setPosition(frame, newPosition);
- }
-
- /**
- * Sets the visibility status of a Scilab Frame
- * @param frame the frame we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the frame (true to set the frame visible, false else)
- * @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
- */
- public static void setVisible(Frame frame, boolean newVisibleState) {
- ScilabFrameBridge.setVisible(frame, newVisibleState);
- }
-
- /**
- * Set the Background color of the Frame
- * @param frame the Frame we want to set the background of
- * @param color the Color
- */
- public static void setBackground(Frame frame, Color color) {
- ScilabFrameBridge.setBackground(frame, color);
- }
-
- /**
- * Get the Background color of the Frame
- * @param frame the Frame we want to get the background of
- * @return the Color
- */
- public static Color getBackground(Frame frame) {
- return ScilabFrameBridge.getBackground(frame);
- }
-
- /**
- * Set the Foreground color of the Frame
- * @param frame the Frame we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(Frame frame, Color color) {
- ScilabFrameBridge.setForeground(frame, color);
- }
-
- /**
- * Get the Foreground color of the Frame
- * @param frame the Frame we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(Frame frame) {
- return ScilabFrameBridge.getForeground(frame);
- }
-
- /**
- * Set the font of the Frame.
- * @param frame the Frame we want to set the font of
- * @param font the font
- */
- public static void setFont(Frame frame, Font font) {
- ScilabFrameBridge.setFont(frame, font);
- }
-
- /**
- * Get the font of the Frame.
- * @param frame the Frame we want to get the font of
- * @return the font
- */
- public static Font getFont(Frame frame) {
- return ScilabFrameBridge.getFont(frame);
- }
-
- /**
- * Set if the Frame is enabled or not
- * @param frame the Frame we want to set the status of
- * @param status true if the Frame is enabled
- */
- public static void setEnabled(Frame frame, boolean status) {
- ScilabFrameBridge.setEnabled(frame, status);
- }
-
- /**
- * Gets the enable status of the Frame
- * @param frame the Frame we want to get the status of
- * @return the enable status of the Frame (true if the Frame is enabled, false if not)
- */
- public static boolean isEnabled(Frame frame) {
- return ScilabFrameBridge.isEnabled(frame);
- }
-
- /**
- * Add a callback to the Frame
- * @param frame the Frame we want to set the callback of
- * @param callback the callback to set
- */
- public static void setCallback(Frame frame, CommonCallBack callback) {
- ScilabFrameBridge.setCallback(frame, callback);
- }
-
- /**
- * Set the Relief of the Frame
- * @param frame the Frame we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(Frame frame, String reliefType) {
- ScilabFrameBridge.setRelief(frame, reliefType);
- }
-
- /**
- * Delete the Frame
- * @param frame the Frame to be destroyed
- */
- public static void destroy(Frame frame) {
- ScilabFrameBridge.destroy(frame);
- }
-
- /**
- * Give the focus to the Frame
- * @param frame the Frame
- */
- public static void requestFocus(Frame frame) {
- ScilabFrameBridge.requestFocus(frame);
- }
-
/**************/
/* Tab Bridge */
/**************/
* @param member the member to add
* @return index of member
*/
- public static int addMember(Tab tab, Frame member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove a Frame member from a tab
- * @param tab the tab which we want to remove the Frame from
- * @param member the Frame to remove
- */
- public static void removeMember(Tab tab, Frame member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
- /**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab where we want to add the member
- * @param member the member to add
- * @return index of member
- */
public static int addMember(Tab tab, Console member) {
return ScilabTabBridge.addMember(tab, member);
}
return ScilabTabBridge.addMember(tab, member);
}
- /**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab which we want to add the pushbutton to
- * @param member the pushbutton to add
- * @return the position of the pushbutton in the member list.
- */
- public static int addMember(Tab tab, PushButton member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove a PushButton member from a tab
- * @param tab the tab which we want to remove the PushButton from
- * @param member the PushButton to remove
- */
- public static void removeMember(Tab tab, PushButton member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
- /**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab which we want to add the EditBox to
- * @param member the editbox to add
- * @return the position of the editbox in the member list.
- */
- public static int addMember(Tab tab, EditBox member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove an EditBox member from a tab
- * @param tab the tab which we want to remove the EditBox from
- * @param member the EditBox to remove
- */
- public static void removeMember(Tab tab, EditBox member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
- /**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab which we want to add the Label to
- * @param member the label to add
- * @return the position of the label in the member list.
- */
- public static int addMember(Tab tab, Label member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove a Label member from a tab
- * @param tab the tab which we want to remove the Label from
- * @param member the Label to remove
- */
- public static void removeMember(Tab tab, Label member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
- /**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab which we want to add the CheckBox to
- * @param member the checkbox to add
- * @return the position of the checkbox in the member list.
- */
- public static int addMember(Tab tab, CheckBox member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove a CheckBox member from a tab
- * @param tab the tab which we want to remove the CheckBox from
- * @param member the CheckBox to remove
- */
- public static void removeMember(Tab tab, CheckBox member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
- /**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab which we want to add the RadioButton to
- * @param member the RadioButton to add
- * @return the position of the RadioButton in the member list.
- */
- public static int addMember(Tab tab, RadioButton member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove a RadioButton member from a tab
- * @param tab the tab which we want to remove the RadioButton from
- * @param member the RadioButton to remove
- */
- public static void removeMember(Tab tab, RadioButton member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
- /**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab which we want to add the UiTable to
- * @param member the UiTable to add
- * @return the position of the UiTable in the member list.
- */
- public static int addMember(Tab tab, UiTable member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove a UiTable member from a tab
- * @param tab the tab which we want to remove the UiTable from
- * @param member the UiTable to remove
- */
- public static void removeMember(Tab tab, UiTable member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
public static int addMember(Tab tab, UiDisplayTree member) {
return ScilabTabBridge.addMember(tab, member);
}
}
/**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab which we want to add the Slider to
- * @param member the Slider to add
- * @return the position of the Slider in the member list.
- */
- public static int addMember(Tab tab, Slider member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove a Slider member from a tab
- * @param tab the tab which we want to remove the Slider from
- * @param member the Slider to remove
- */
- public static void removeMember(Tab tab, Slider member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
- /**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab which we want to add the ListBox to
- * @param member the ListBox to add
- * @return the position of the ListBox in the member list.
- */
- public static int addMember(Tab tab, ListBox member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove a ListBox member from a tab
- * @param tab the tab which we want to remove the ListBox from
- * @param member the ListBox to remove
- */
- public static void removeMember(Tab tab, ListBox member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
- /**
- * Add a member (dockable element) to a tab and returns the index of this member
- * @param tab the tab which we want to add the PopupMenu to
- * @param member the PopupMenu to add
- * @return the position of the PopupMenu in the member list.
- */
- public static int addMember(Tab tab, PopupMenu member) {
- return ScilabTabBridge.addMember(tab, member);
- }
-
- /**
- * Remove a PopupMenu member from a tab
- * @param tab the tab which we want to remove the PopupMenu from
- * @param member the PopupMenu to remove
- */
- public static void removeMember(Tab tab, PopupMenu member) {
- ScilabTabBridge.removeMember(tab, member);
- }
-
- /**
* Remove a member (dockable element) to a tab and returns the index of this member
* @param tab the tab where we want to add the member
* @param member the member to add
return ScilabSeparatorBridge.createSeparator();
}
- /*****************/
- /* PushButton Bridge */
- /*****************/
+ /******************/
+ /* TextBox Bridge */
+ /******************/
/**
- * Creates a new PushButton
- * @return the created PushButton
+ * Creates a new TextBox
+ * @return the created TextBox
*/
- public static SimplePushButton createPushButton() {
- return ScilabPushButtonBridge.createPushButton();
+ public static SimpleTextBox createTextBox() {
+ return ScilabTextBoxBridge.createTextBox();
}
/**
- * Draws a pushButton on screen
- * @param pushButton the pushButton to be drawn
+ * Sets the Text of a TextBox
+ * @param textBox the TextBox we want to set the Text of
+ * @param newText the Text to set for the TextBox
*/
- public static void draw(PushButton pushButton) {
- ScilabPushButtonBridge.draw(pushButton);
+ public static void setText(TextBox textBox, String newText) {
+ ScilabTextBoxBridge.setText(textBox, newText);
}
/**
- * Gets the dimensions (width and height) of a pushButton
- * @param pushButton the pushButton we want to get the dimensions of
- * @return dimensions of the pushButton
+ * Gets the text of an TextBox
+ * @param textBox the TextBox we want to get the text of
+ * @return the text of the TextBox
*/
- public static Size getDims(PushButton pushButton) {
- return ScilabPushButtonBridge.getDims(pushButton);
+ public static String getText(TextBox textBox) {
+ return ScilabTextBoxBridge.getText(textBox);
}
/**
- * Sets the dimensions (width and height) of a pushButton
- * @param pushButton the pushButton we want to set the dimensions of
- * @param newSize new dimensions of the pushButton
+ * Draws a Scilab TextBox
+ * @param textBox the TextBox to draw
+ * @see org.scilab.modules.ihm.UIElement#draw()
*/
- public static void setDims(PushButton pushButton, Size newSize) {
- ScilabPushButtonBridge.setDims(pushButton, newSize);
+ public static void draw(TextBox textBox) {
+ ScilabTextBoxBridge.draw(textBox);
}
/**
- * Gets the position (X-coordinate and Y-coordinate) of a pushButton
- * @param pushButton the pushButton we want to get the position of
- * @return position of the pushButton
+ * Gets the dimensions (width and height) of a Scilab TextBox
+ * @param textBox the TextBox we want to get the dimensions of
+ * @return the size of the textBox
+ * @see org.scilab.modules.ihm.UIElement#getDims()
*/
- public static Position getPosition(PushButton pushButton) {
- return ScilabPushButtonBridge.getPosition(pushButton);
+ public static Size getDims(TextBox textBox) {
+ return ScilabTextBoxBridge.getDims(textBox);
}
/**
- * Sets the position (X-coordinate and Y-coordinate) of a pushButton
- * @param pushButton the pushButton we want to set the position of
- * @param newPosition new position of the pushButton
+ * Gets the position (X-coordinate and Y-coordinate) of a Scilab textBox
+ * @param textBox the textBox we want to get the position of
+ * @return the position of the textBox
+ * @see org.scilab.modules.ihm.UIElement#getPosition()
*/
- public static void setPosition(PushButton pushButton, Position newPosition) {
- ScilabPushButtonBridge.setPosition(pushButton, newPosition);
- }
-
- /**
- * Gets the visibility status of a pushButton
- * @param pushButton the pushButton we want to get the status of
- * @return visibility status (true if the pushButton is visible, false if not)
- */
- public static boolean isVisible(PushButton pushButton) {
- return ScilabPushButtonBridge.isVisible(pushButton);
- }
-
- /**
- * Sets the visibility status for a pushButton
- * @param pushButton the pushButton we want to set the visibility status of
- * @param newVisibleState new visibility status for the pushButton
- * (true set the pushButton visible, false to set the pushButton invisible)
- */
- public static void setVisible(PushButton pushButton, boolean newVisibleState) {
- ScilabPushButtonBridge.setVisible(pushButton, newVisibleState);
- }
-
- /**
- * Sets the Text of a PushButton
- * @param pushButton the PushButton we want to set the Text of
- * @param newText the Text to set for the PushButton
- */
- public static void setText(PushButton pushButton, String newText) {
- ScilabPushButtonBridge.setText(pushButton, newText);
- }
-
- /**
- * Gets the Text of a PushButton
- * @param pushButton the PushButton we want to get the Text of
- * @return the Text of the PushButton
- */
- public static String getText(PushButton pushButton) {
- return ScilabPushButtonBridge.getText(pushButton);
- }
-
- /**
- * Sets the icon of a PushButton
- * @param pushButton the PushButton we want to set the icon of
- * @param filename the path to the icon image to set to the PushButton
- */
- public static void setIcon(PushButton pushButton, String filename) {
- ScilabPushButtonBridge.setIcon(pushButton, filename);
- }
-
- /**
- * Add a callback to the pushbutton
- * @param pushButton the PushButton we want to set the callback of
- * @param callback the CallBack to set.
- */
- public static void setCallback(PushButton pushButton, CommonCallBack callback) {
- ScilabPushButtonBridge.setCallback(pushButton, callback);
- }
-
- /**
- * Set if the pushbutton is enabled or not
- * @param pushButton the PushButton we want to set the status of
- * @param status true if the pushbutton is enabled
- */
- public static void setEnabled(PushButton pushButton, boolean status) {
- ScilabPushButtonBridge.setEnabled(pushButton, status);
- }
-
- /**
- * Gets the enable status of a PushButton
- * @param pushButton the PushButton we want to get the status of
- * @return the enable status of the PushButton (true if the PushButton is enabled, false if not)
- */
- public static boolean isEnabled(PushButton pushButton) {
- return ScilabPushButtonBridge.isEnabled(pushButton);
- }
-
- /**
- * Set the Background color of the pushbutton
- * @param pushButton the PushButton we want to set the background of
- * @param color the Color
- */
- public static void setBackground(PushButton pushButton, Color color) {
- ScilabPushButtonBridge.setBackground(pushButton, color);
- }
-
- /**
- * Get the Background color of the pushbutton
- * @param pushButton the PushButton we want to get the background of
- * @return the Color
- */
- public static Color getBackground(PushButton pushButton) {
- return ScilabPushButtonBridge.getBackground(pushButton);
- }
-
- /**
- * Set the Foreground color of the pushbutton
- * @param pushButton the PushButton we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(PushButton pushButton, Color color) {
- ScilabPushButtonBridge.setForeground(pushButton, color);
- }
-
- /**
- * Get the Foreground color of the pushbutton
- * @param pushButton the PushButton we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(PushButton pushButton) {
- return ScilabPushButtonBridge.getForeground(pushButton);
- }
-
- /**
- * Set the font of the pushbutton.
- * @param pushButton the pushbutton we want to set the font of
- * @param font the font
- */
- public static void setFont(PushButton pushButton, Font font) {
- ScilabPushButtonBridge.setFont(pushButton, font);
- }
-
- /**
- * Get the font of the pushbutton.
- * @param pushButton the pushbutton we want to get the font of
- * @return the font
- */
- public static Font getFont(PushButton pushButton) {
- return ScilabPushButtonBridge.getFont(pushButton);
- }
-
- /**
- * Set the horizontal alignment for the PushButton text
- * @param pushButton the PushButton we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setHorizontalAlignment(PushButton pushButton, String alignment) {
- ScilabPushButtonBridge.setHorizontalAlignment(pushButton, alignment);
- }
-
- /**
- * Set the vertical alignment for the PushButton text
- * @param pushButton the PushButton we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setVerticalAlignment(PushButton pushButton, String alignment) {
- ScilabPushButtonBridge.setVerticalAlignment(pushButton, alignment);
- }
-
- /**
- * Set the Relief of the PushButton
- * @param pushButton the PushButton which we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(PushButton pushButton, String reliefType) {
- ScilabPushButtonBridge.setRelief(pushButton, reliefType);
- }
-
- /**
- * Delete the PushButton
- * @param pushButton the PushButton to be destroyed
- */
- public static void destroy(PushButton pushButton) {
- ScilabPushButtonBridge.destroy(pushButton);
- }
-
- /**
- * Set the string to be displayed when the mouse cursor is over the PushButton
- * @param pushButton the PushButton
- * @param toolTipText the string to set
- */
- public static void setToolTipText(PushButton pushButton, String toolTipText) {
- ScilabPushButtonBridge.setToolTipText(pushButton, toolTipText);
- }
-
- /**
- * Give the focus to the PushButton
- * @param pushButton the PushButton
- */
- public static void requestFocus(PushButton pushButton) {
- ScilabPushButtonBridge.requestFocus(pushButton);
- }
-
- /******************/
- /* TextBox Bridge */
- /******************/
-
- /**
- * Creates a new TextBox
- * @return the created TextBox
- */
- public static SimpleTextBox createTextBox() {
- return ScilabTextBoxBridge.createTextBox();
- }
-
- /**
- * Sets the Text of a TextBox
- * @param textBox the TextBox we want to set the Text of
- * @param newText the Text to set for the TextBox
- */
- public static void setText(TextBox textBox, String newText) {
- ScilabTextBoxBridge.setText(textBox, newText);
- }
-
- /**
- * Gets the text of an TextBox
- * @param textBox the TextBox we want to get the text of
- * @return the text of the TextBox
- */
- public static String getText(TextBox textBox) {
- return ScilabTextBoxBridge.getText(textBox);
- }
-
- /**
- * Draws a Scilab TextBox
- * @param textBox the TextBox to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(TextBox textBox) {
- ScilabTextBoxBridge.draw(textBox);
- }
-
- /**
- * Gets the dimensions (width and height) of a Scilab TextBox
- * @param textBox the TextBox we want to get the dimensions of
- * @return the size of the textBox
- * @see org.scilab.modules.ihm.UIElement#getDims()
- */
- public static Size getDims(TextBox textBox) {
- return ScilabTextBoxBridge.getDims(textBox);
- }
-
- /**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab textBox
- * @param textBox the textBox we want to get the position of
- * @return the position of the textBox
- * @see org.scilab.modules.ihm.UIElement#getPosition()
- */
- public static Position getPosition(TextBox textBox) {
- return ScilabTextBoxBridge.getPosition(textBox);
- }
-
- /**
- * Gets the visibility status of a Scilab TextBox
- * @param textBox the textBox we want to get the visiblity status of
- * @return the visibility status of the textBox (true if the textBox is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
- */
- public static boolean isVisible(TextBox textBox) {
- return ScilabTextBoxBridge.isVisible(textBox);
- }
-
- /**
- * Set the status of the TextBox
- * @param textBox the textBox we want to set the status of
- * @param status true if the TextBox is enabled
- * @see org.scilab.modules.gui.widget.Widget#setEnabled(boolean)
- */
- public static void setEnabled(TextBox textBox, boolean status) {
- ScilabTextBoxBridge.setEnabled(textBox, status);
- }
-
- /**
- * Gets the enable status of a TextBox
- * @param textBox the textBox we want to get the status of
- * @return the enable status of the TextBox (true if the TextBox is enabled, false if not)
- */
- public static boolean isEnabled(TextBox textBox) {
- return ScilabTextBoxBridge.isEnabled(textBox);
- }
-
- /**
- * Sets the dimensions (width and height) of a Scilab TextBox
- * @param textBox the textBox we want to set the dimensions of
- * @param newSize the size we want to set to the textBox
- * @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
- */
- public static void setDims(TextBox textBox, Size newSize) {
- ScilabTextBoxBridge.setDims(textBox, newSize);
- }
-
- /**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab textBox
- * @param textBox the textBox we want to set the position of
- * @param newPosition the position we want to set to the textBox
- * @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
- */
- public static void setPosition(TextBox textBox, Position newPosition) {
- ScilabTextBoxBridge.setPosition(textBox, newPosition);
- }
-
- /**
- * Sets the visibility status of a Scilab TextBox
- * @param textBox the textBox we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the textBox (true to set the textBox visible, false else)
- * @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
- */
- public static void setVisible(TextBox textBox, boolean newVisibleState) {
- ScilabTextBoxBridge.setVisible(textBox, newVisibleState);
- }
-
- /**
- * Set the Background color of the textbox
- * @param textBox the textbox we want to set the background of
- * @param color the Color
- */
- public static void setBackground(TextBox textBox, Color color) {
- ScilabTextBoxBridge.setBackground(textBox, color);
- }
-
- /**
- * Get the Background color of the textbox
- * @param textBox the textbox we want to get the background of
- * @return the Color
- */
- public static Color getBackground(TextBox textBox) {
- return ScilabTextBoxBridge.getBackground(textBox);
- }
-
- /**
- * Set the Foreground color of the textbox
- * @param textBox the textbox we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(TextBox textBox, Color color) {
- ScilabTextBoxBridge.setForeground(textBox, color);
- }
-
- /**
- * Get the Foreground color of the textbox
- * @param textBox the textbox we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(TextBox textBox) {
- return ScilabTextBoxBridge.getForeground(textBox);
- }
-
- /**
- * Set the font of the textbox.
- * @param textBox the textbox we want to set the font of
- * @param font the font
- */
- public static void setFont(TextBox textBox, Font font) {
- ScilabTextBoxBridge.setFont(textBox, font);
- }
-
- /**
- * Get the font of the textbox.
- * @param textBox the textbox we want to get the font of
- * @return the font
- */
- public static Font getFont(TextBox textBox) {
- return ScilabTextBoxBridge.getFont(textBox);
- }
-
- /**
- * Add a callback to the TextBox
- * @param textBox the TextBox we want to set the callback of
- * @param callback the CallBack to set.
- */
- public static void setCallback(TextBox textBox, CommonCallBack callback) {
- ScilabTextBoxBridge.setCallback(textBox, callback);
- }
-
- /**
- * Set the horizontal alignment for the TextBox text
- * @param textBox the TextBox we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setHorizontalAlignment(TextBox textBox, String alignment) {
- ScilabTextBoxBridge.setHorizontalAlignment(textBox, alignment);
- }
-
- /**
- * Set the vertical alignment for the TextBox text
- * @param textBox the TextBox we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setVerticalAlignment(TextBox textBox, String alignment) {
- ScilabTextBoxBridge.setVerticalAlignment(textBox, alignment);
- }
-
- /**
- * Set the Relief of the TextBox
- * @param textBox the TextBox which we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(TextBox textBox, String reliefType) {
- ScilabTextBoxBridge.setRelief(textBox, reliefType);
- }
-
- /**
- * Delete the TextBox
- * @param textBox the TextBox to be destroyed
- */
- public static void destroy(TextBox textBox) {
- ScilabTextBoxBridge.destroy(textBox);
- }
-
- /**
- * Give the focus to the TextBox
- * @param textBox the TextBox
- */
- public static void requestFocus(TextBox textBox) {
- ScilabTextBoxBridge.requestFocus(textBox);
- }
-
- /******************/
- /* EditBox Bridge */
- /******************/
-
- /**
- * Creates a new EditBox
- * @return the created EditBox
- */
- public static SimpleEditBox createEditBox() {
- return ScilabEditBoxBridge.createEditBox();
- }
-
- /**
- * Sets the Text of a EditBox
- * @param editBox the EditBox we want to set the Text of
- * @param newText the Text to set for the EditBox
- */
- public static void setText(EditBox editBox, String newText) {
- ScilabEditBoxBridge.setText(editBox, newText);
- }
-
- /**
- * Gets the text of an EditBox
- * @param editBox the EditBox we want to get the text of
- * @return the text of the EditBox
- */
- public static String getText(EditBox editBox) {
- return ScilabEditBoxBridge.getText(editBox);
- }
-
- /**
- * Draws a Scilab EditBox
- * @param editBox the EditBox to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(EditBox editBox) {
- ScilabEditBoxBridge.draw(editBox);
- }
-
- /**
- * Gets the dimensions (width and height) of a Scilab EditBox
- * @param editBox the EditBox we want to get the dimensions of
- * @return the size of the editBox
- * @see org.scilab.modules.ihm.UIElement#getDims()
- */
- public static Size getDims(EditBox editBox) {
- return ScilabEditBoxBridge.getDims(editBox);
- }
-
- /**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab editBox
- * @param editBox the editBox we want to get the position of
- * @return the position of the editBox
- * @see org.scilab.modules.ihm.UIElement#getPosition()
- */
- public static Position getPosition(EditBox editBox) {
- return ScilabEditBoxBridge.getPosition(editBox);
- }
-
- /**
- * Gets the visibility status of a Scilab EditBox
- * @param editBox the editBox we want to get the visiblity status of
- * @return the visibility status of the editBox (true if the editBox is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
- */
- public static boolean isVisible(EditBox editBox) {
- return ScilabEditBoxBridge.isVisible(editBox);
- }
-
- /**
- * Sets the dimensions (width and height) of a Scilab EditBox
- * @param editBox the editBox we want to set the dimensions of
- * @param newSize the size we want to set to the editBox
- * @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
- */
- public static void setDims(EditBox editBox, Size newSize) {
- ScilabEditBoxBridge.setDims(editBox, newSize);
- }
-
- /**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab editBox
- * @param editBox the editBox we want to set the position of
- * @param newPosition the position we want to set to the editBox
- * @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
- */
- public static void setPosition(EditBox editBox, Position newPosition) {
- ScilabEditBoxBridge.setPosition(editBox, newPosition);
- }
-
- /**
- * Sets the visibility status of a Scilab EditBox
- * @param editBox the editBox we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the editBox (true to set the editBox visible, false else)
- * @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
- */
- public static void setVisible(EditBox editBox, boolean newVisibleState) {
- ScilabEditBoxBridge.setVisible(editBox, newVisibleState);
- }
-
- /**
- * Set the Background color of the EditBox
- * @param editBox the EditBox we want to set the background of
- * @param color the Color
- */
- public static void setBackground(EditBox editBox, Color color) {
- ScilabEditBoxBridge.setBackground(editBox, color);
- }
-
- /**
- * Get the Background color of the EditBox
- * @param editBox the EditBox we want to get the background of
- * @return the Color
- */
- public static Color getBackground(EditBox editBox) {
- return ScilabEditBoxBridge.getBackground(editBox);
- }
-
- /**
- * Set the Foreground color of the EditBox
- * @param editBox the EditBox we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(EditBox editBox, Color color) {
- ScilabEditBoxBridge.setForeground(editBox, color);
- }
-
- /**
- * Get the Foreground color of the EditBox
- * @param editBox the EditBox we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(EditBox editBox) {
- return ScilabEditBoxBridge.getForeground(editBox);
- }
-
- /**
- * Set the font of the EditBox.
- * @param editBox the EditBox we want to set the font of
- * @param font the font
- */
- public static void setFont(EditBox editBox, Font font) {
- ScilabEditBoxBridge.setFont(editBox, font);
- }
-
- /**
- * Get the font of the EditBox.
- * @param editBox the EditBox we want to get the font of
- * @return the font
- */
- public static Font getFont(EditBox editBox) {
- return ScilabEditBoxBridge.getFont(editBox);
- }
-
- /**
- * Set if the EditBox is enabled or not
- * @param editBox the EditBox we want to set the status of
- * @param status true if the EditBox is enabled
- */
- public static void setEnabled(EditBox editBox, boolean status) {
- ScilabEditBoxBridge.setEnabled(editBox, status);
- }
-
- /**
- * Gets the enable status of an EditBox
- * @param editBox the EditBox we want to get the status of
- * @return the enable status of the EditBox (true if the EditBox is enabled, false if not)
- */
- public static boolean isEnabled(EditBox editBox) {
- return ScilabEditBoxBridge.isEnabled(editBox);
- }
-
- /**
- * Add a callback to the EditBox
- * @param editBox the EditBox we want to set the callback of
- * @param callback the Callback to set.
- */
- public static void setCallback(EditBox editBox, CommonCallBack callback) {
- ScilabEditBoxBridge.setCallback(editBox, callback);
- }
-
- /**
- * Set the horizontal alignment for the EditBox text
- * @param editBox the EditBox we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setHorizontalAlignment(EditBox editBox, String alignment) {
- ScilabEditBoxBridge.setHorizontalAlignment(editBox, alignment);
- }
-
- /**
- * Set the vertical alignment for the EditBox text
- * @param editBox the EditBox we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setVerticalAlignment(EditBox editBox, String alignment) {
- ScilabEditBoxBridge.setVerticalAlignment(editBox, alignment);
- }
-
- /**
- * Set the Relief of the EditBox
- * @param editBox the EditBox which we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(EditBox editBox, String reliefType) {
- ScilabEditBoxBridge.setRelief(editBox, reliefType);
- }
-
- /**
- * Delete the EditBox
- * @param editBox the EditBox to be destroyed
- */
- public static void destroy(EditBox editBox) {
- ScilabEditBoxBridge.destroy(editBox);
- }
-
- /**
- * Give the focus to the EditBox
- * @param editBox the EditBox
- */
- public static void requestFocus(EditBox editBox) {
- ScilabEditBoxBridge.requestFocus(editBox);
- }
-
- /****************/
- /* Label Bridge */
- /****************/
-
- /**
- * Creates a new Label
- * @return the created Label
- */
- public static SimpleLabel createLabel() {
- return ScilabLabelBridge.createLabel();
- }
-
- /**
- * Sets the Text of a Label
- * @param label the Label we want to set the Text of
- * @param newText the Text to set for the Label
- */
- public static void setText(Label label, String newText) {
- ScilabLabelBridge.setText(label, newText);
- }
-
- /**
- * Gets the text of an Label
- * @param label the Label we want to get the text of
- * @return the text of the Label
- */
- public static String getText(Label label) {
- return ScilabLabelBridge.getText(label);
- }
-
- /**
- * Draws a Scilab Label
- * @param label the Label to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(Label label) {
- ScilabLabelBridge.draw(label);
- }
-
- /**
- * Gets the dimensions (width and height) of a Scilab Label
- * @param label the Label we want to get the dimensions of
- * @return the size of the label
- * @see org.scilab.modules.ihm.UIElement#getDims()
- */
- public static Size getDims(Label label) {
- return ScilabLabelBridge.getDims(label);
- }
-
- /**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab label
- * @param label the label we want to get the position of
- * @return the position of the label
- * @see org.scilab.modules.ihm.UIElement#getPosition()
- */
- public static Position getPosition(Label label) {
- return ScilabLabelBridge.getPosition(label);
- }
-
- /**
- * Gets the visibility status of a Scilab Label
- * @param label the label we want to get the visiblity status of
- * @return the visibility status of the label (true if the label is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
- */
- public static boolean isVisible(Label label) {
- return ScilabLabelBridge.isVisible(label);
- }
-
- /**
- * Sets the dimensions (width and height) of a Scilab Label
- * @param label the label we want to set the dimensions of
- * @param newSize the size we want to set to the label
- * @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
- */
- public static void setDims(Label label, Size newSize) {
- ScilabLabelBridge.setDims(label, newSize);
- }
-
- /**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab label
- * @param label the label we want to set the position of
- * @param newPosition the position we want to set to the label
- * @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
- */
- public static void setPosition(Label label, Position newPosition) {
- ScilabLabelBridge.setPosition(label, newPosition);
- }
-
- /**
- * Sets the visibility status of a Scilab Label
- * @param label the label we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the label (true to set the label visible, false else)
- * @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
- */
- public static void setVisible(Label label, boolean newVisibleState) {
- ScilabLabelBridge.setVisible(label, newVisibleState);
- }
-
- /**
- * Set the Background color of the Label
- * @param label the Label we want to set the background of
- * @param color the Color
- */
- public static void setBackground(Label label, Color color) {
- ScilabLabelBridge.setBackground(label, color);
- }
-
- /**
- * Get the Background color of the Label
- * @param label the Label we want to get the background of
- * @return the Color
- */
- public static Color getBackground(Label label) {
- return ScilabLabelBridge.getBackground(label);
- }
-
- /**
- * Set the Foreground color of the Label
- * @param label the Label we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(Label label, Color color) {
- ScilabLabelBridge.setForeground(label, color);
- }
-
- /**
- * Get the Foreground color of the Label
- * @param label the Label we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(Label label) {
- return ScilabLabelBridge.getForeground(label);
- }
-
- /**
- * Set the font of the Label.
- * @param label the Label we want to set the font of
- * @param font the font
- */
- public static void setFont(Label label, Font font) {
- ScilabLabelBridge.setFont(label, font);
- }
-
- /**
- * Get the font of the Label.
- * @param label the Label we want to get the font of
- * @return the font
- */
- public static Font getFont(Label label) {
- return ScilabLabelBridge.getFont(label);
- }
-
- /**
- * Set if the Label is enabled or not
- * @param label the Label we want to set the status of
- * @param status true if the Label is enabled
- */
- public static void setEnabled(Label label, boolean status) {
- ScilabLabelBridge.setEnabled(label, status);
- }
-
- /**
- * Gets the enable status of a Label
- * @param label the Label we want to get the status of
- * @return the enable status of the Label (true if the Label is enabled, false if not)
- */
- public static boolean isEnabled(Label label) {
- return ScilabLabelBridge.isEnabled(label);
- }
-
- /**
- * Add a callback to the Label
- * @param label the Label we want to set the callback of
- * @param callback the Callback to set.
- */
- public static void setCallback(Label label, CommonCallBack callback) {
- ScilabLabelBridge.setCallback(label, callback);
- }
-
- /**
- * Set the horizontal alignment for the Label text
- * @param label the Label we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setHorizontalAlignment(Label label, String alignment) {
- ScilabLabelBridge.setHorizontalAlignment(label, alignment);
- }
-
- /**
- * Set the vertical alignment for the Label text
- * @param label the Label we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setVerticalAlignment(Label label, String alignment) {
- ScilabLabelBridge.setVerticalAlignment(label, alignment);
- }
-
- /**
- * Set the Relief of the Label
- * @param label the Label which we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(Label label, String reliefType) {
- ScilabLabelBridge.setRelief(label, reliefType);
- }
-
- /**
- * Delete the Label
- * @param label the Label to be destroyed
- */
- public static void destroy(Label label) {
- ScilabLabelBridge.destroy(label);
- }
-
- /**
- * Give the focus to the Label
- * @param label the Label
- */
- public static void requestFocus(Label label) {
- ScilabLabelBridge.requestFocus(label);
- }
-
- /*******************/
- /* CheckBox Bridge */
- /*******************/
-
- /**
- * Creates a new CheckBox
- * @return the created CheckBox
- */
- public static SimpleCheckBox createCheckBox() {
- return ScilabCheckBoxBridge.createCheckBox();
- }
-
- /**
- * Sets the Text of a CheckBox
- * @param checkBox the CheckBox we want to set the Text of
- * @param newText the Text to set for the CheckBox
- */
- public static void setText(CheckBox checkBox, String newText) {
- ScilabCheckBoxBridge.setText(checkBox, newText);
- }
-
- /**
- * Gets the text of an CheckBox
- * @param checkBox the CheckBox we want to get the text of
- * @return the text of the CheckBox
- */
- public static String getText(CheckBox checkBox) {
- return ScilabCheckBoxBridge.getText(checkBox);
- }
-
- /**
- * Draws a Scilab CheckBox
- * @param checkBox the CheckBox to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(CheckBox checkBox) {
- ScilabCheckBoxBridge.draw(checkBox);
- }
-
- /**
- * Gets the dimensions (width and height) of a Scilab CheckBox
- * @param checkBox the CheckBox we want to get the dimensions of
- * @return the size of the checkBox
- * @see org.scilab.modules.ihm.UIElement#getDims()
- */
- public static Size getDims(CheckBox checkBox) {
- return ScilabCheckBoxBridge.getDims(checkBox);
- }
-
- /**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab checkBox
- * @param checkBox the checkBox we want to get the position of
- * @return the position of the checkBox
- * @see org.scilab.modules.ihm.UIElement#getPosition()
- */
- public static Position getPosition(CheckBox checkBox) {
- return ScilabCheckBoxBridge.getPosition(checkBox);
- }
-
- /**
- * Gets the visibility status of a Scilab CheckBox
- * @param checkBox the checkBox we want to get the visiblity status of
- * @return the visibility status of the checkBox (true if the checkBox is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
- */
- public static boolean isVisible(CheckBox checkBox) {
- return ScilabCheckBoxBridge.isVisible(checkBox);
- }
-
- /**
- * Sets the dimensions (width and height) of a Scilab CheckBox
- * @param checkBox the checkBox we want to set the dimensions of
- * @param newSize the size we want to set to the checkBox
- * @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
- */
- public static void setDims(CheckBox checkBox, Size newSize) {
- ScilabCheckBoxBridge.setDims(checkBox, newSize);
- }
-
- /**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab checkBox
- * @param checkBox the checkBox we want to set the position of
- * @param newPosition the position we want to set to the checkBox
- * @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
- */
- public static void setPosition(CheckBox checkBox, Position newPosition) {
- ScilabCheckBoxBridge.setPosition(checkBox, newPosition);
- }
-
- /**
- * Sets the visibility status of a Scilab CheckBox
- * @param checkBox the checkBox we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the checkBox (true to set the checkBox visible, false else)
- * @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
- */
- public static void setVisible(CheckBox checkBox, boolean newVisibleState) {
- ScilabCheckBoxBridge.setVisible(checkBox, newVisibleState);
- }
-
- /**
- * Set the Background color of the CheckBox
- * @param checkBox the CheckBox we want to set the background of
- * @param color the Color
- */
- public static void setBackground(CheckBox checkBox, Color color) {
- ScilabCheckBoxBridge.setBackground(checkBox, color);
- }
-
- /**
- * Get the Background color of the CheckBox
- * @param checkBox the CheckBox we want to get the background of
- * @return the Color
- */
- public static Color getBackground(CheckBox checkBox) {
- return ScilabCheckBoxBridge.getBackground(checkBox);
- }
-
- /**
- * Set the Foreground color of the CheckBox
- * @param checkBox the CheckBox we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(CheckBox checkBox, Color color) {
- ScilabCheckBoxBridge.setForeground(checkBox, color);
- }
-
- /**
- * Get the Foreground color of the CheckBox
- * @param checkBox the CheckBox we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(CheckBox checkBox) {
- return ScilabCheckBoxBridge.getForeground(checkBox);
- }
-
- /**
- * Set the font of the CheckBox.
- * @param checkBox the CheckBox we want to set the font of
- * @param font the font
- */
- public static void setFont(CheckBox checkBox, Font font) {
- ScilabCheckBoxBridge.setFont(checkBox, font);
- }
-
- /**
- * Get the font of the CheckBox.
- * @param checkBox the CheckBox we want to get the font of
- * @return the font
- */
- public static Font getFont(CheckBox checkBox) {
- return ScilabCheckBoxBridge.getFont(checkBox);
- }
-
- /**
- * Set if the CheckBox is enabled or not
- * @param checkBox the CheckBox we want to set the status of
- * @param status true if the CheckBox is enabled
- */
- public static void setEnabled(CheckBox checkBox, boolean status) {
- ScilabCheckBoxBridge.setEnabled(checkBox, status);
- }
-
- /**
- * Gets the enable status of the CheckBox
- * @param checkBox the CheckBox we want to get the status of
- * @return the enable status of the CheckBox (true if the CheckBox is enabled, false if not)
- */
- public static boolean isEnabled(CheckBox checkBox) {
- return ScilabCheckBoxBridge.isEnabled(checkBox);
- }
-
- /**
- * Add a callback to the CheckBox
- * @param checkBox the CheckBox we want to set the callback of
- * @param callback the CallBack to set.
- */
- public static void setCallback(CheckBox checkBox, CommonCallBack callback) {
- ScilabCheckBoxBridge.setCallback(checkBox, callback);
- }
-
- /**
- * Set the horizontal alignment for the CheckBox text
- * @param checkBox the CheckBox we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setHorizontalAlignment(CheckBox checkBox, String alignment) {
- ScilabCheckBoxBridge.setHorizontalAlignment(checkBox, alignment);
- }
-
- /**
- * Set the vertical alignment for the CheckBox text
- * @param checkBox the CheckBox we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setVerticalAlignment(CheckBox checkBox, String alignment) {
- ScilabCheckBoxBridge.setVerticalAlignment(checkBox, alignment);
- }
-
- /**
- * Set if the CheckBox is checked or not
- * @param checkBox the CheckBox we want to set the status of
- * @param status true to set the CheckBox checked
- */
- public static void setChecked(CheckBox checkBox, boolean status) {
- ScilabCheckBoxBridge.setChecked(checkBox, status);
- }
-
- /**
- * Get the status of the CheckBox
- * @param checkBox the CheckBox we want to get the status of
- * @return true if the CheckBox is checked
- */
- public static boolean isChecked(CheckBox checkBox) {
- return ScilabCheckBoxBridge.isChecked(checkBox);
- }
-
- /**
- * Set the Relief of the CheckBox
- * @param checkBox the CheckBox which we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(CheckBox checkBox, String reliefType) {
- ScilabCheckBoxBridge.setRelief(checkBox, reliefType);
- }
-
- /**
- * Delete the CheckBox
- * @param checkBox the CheckBox to be destroyed
- */
- public static void destroy(CheckBox checkBox) {
- ScilabCheckBoxBridge.destroy(checkBox);
- }
-
- /**
- * Give the focus to the CheckBox
- * @param checkBox the CheckBox
- */
- public static void requestFocus(CheckBox checkBox) {
- ScilabCheckBoxBridge.requestFocus(checkBox);
- }
-
- /**********************/
- /* RadioButton Bridge */
- /**********************/
-
- /**
- * Creates a new RadioButton
- * @return the created RadioButton
- */
- public static SimpleRadioButton createRadioButton() {
- return ScilabRadioButtonBridge.createRadioButton();
- }
-
- /**
- * Sets the Text of a RadioButton
- * @param radioButton the RadioButton we want to set the Text of
- * @param newText the Text to set for the RadioButton
- */
- public static void setText(RadioButton radioButton, String newText) {
- ScilabRadioButtonBridge.setText(radioButton, newText);
- }
-
- /**
- * Gets the text of an RadioButton
- * @param radioButton the RadioButton we want to get the text of
- * @return the text of the RadioButton
- */
- public static String getText(RadioButton radioButton) {
- return ScilabRadioButtonBridge.getText(radioButton);
- }
-
- /**
- * Draws a Scilab RadioButton
- * @param radioButton the RadioButton to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(RadioButton radioButton) {
- ScilabRadioButtonBridge.draw(radioButton);
- }
-
- /**
- * Gets the dimensions (width and height) of a Scilab RadioButton
- * @param radioButton the RadioButton we want to get the dimensions of
- * @return the size of the radioButton
- * @see org.scilab.modules.ihm.UIElement#getDims()
- */
- public static Size getDims(RadioButton radioButton) {
- return ScilabRadioButtonBridge.getDims(radioButton);
- }
-
- /**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab radioButton
- * @param radioButton the radioButton we want to get the position of
- * @return the position of the radioButton
- * @see org.scilab.modules.ihm.UIElement#getPosition()
- */
- public static Position getPosition(RadioButton radioButton) {
- return ScilabRadioButtonBridge.getPosition(radioButton);
- }
-
- /**
- * Gets the visibility status of a Scilab RadioButton
- * @param radioButton the radioButton we want to get the visiblity status of
- * @return the visibility status of the radioButton (true if the radioButton is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
- */
- public static boolean isVisible(RadioButton radioButton) {
- return ScilabRadioButtonBridge.isVisible(radioButton);
- }
-
- /**
- * Sets the dimensions (width and height) of a Scilab RadioButton
- * @param radioButton the radioButton we want to set the dimensions of
- * @param newSize the size we want to set to the radioButton
- * @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
- */
- public static void setDims(RadioButton radioButton, Size newSize) {
- ScilabRadioButtonBridge.setDims(radioButton, newSize);
- }
-
- /**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab radioButton
- * @param radioButton the radioButton we want to set the position of
- * @param newPosition the position we want to set to the radioButton
- * @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
- */
- public static void setPosition(RadioButton radioButton, Position newPosition) {
- ScilabRadioButtonBridge.setPosition(radioButton, newPosition);
- }
-
- /**
- * Sets the visibility status of a Scilab RadioButton
- * @param radioButton the radioButton we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the radioButton (true to set the radioButton visible, false else)
- * @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
- */
- public static void setVisible(RadioButton radioButton, boolean newVisibleState) {
- ScilabRadioButtonBridge.setVisible(radioButton, newVisibleState);
- }
-
- /**
- * Set the Background color of the RadioButton
- * @param radioButton the RadioButton we want to set the background of
- * @param color the Color
- */
- public static void setBackground(RadioButton radioButton, Color color) {
- ScilabRadioButtonBridge.setBackground(radioButton, color);
- }
-
- /**
- * Get the Background color of the RadioButton
- * @param radioButton the RadioButton we want to get the background of
- * @return the Color
- */
- public static Color getBackground(RadioButton radioButton) {
- return ScilabRadioButtonBridge.getBackground(radioButton);
- }
-
- /**
- * Set the Foreground color of the RadioButton
- * @param radioButton the RadioButton we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(RadioButton radioButton, Color color) {
- ScilabRadioButtonBridge.setForeground(radioButton, color);
- }
-
- /**
- * Get the Foreground color of the RadioButton
- * @param radioButton the RadioButton we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(RadioButton radioButton) {
- return ScilabRadioButtonBridge.getForeground(radioButton);
- }
-
- /**
- * Set the font of the RadioButton.
- * @param radioButton the RadioButton we want to set the font of
- * @param font the font
- */
- public static void setFont(RadioButton radioButton, Font font) {
- ScilabRadioButtonBridge.setFont(radioButton, font);
- }
-
- /**
- * Get the font of the RadioButton.
- * @param radioButton the RadioButton we want to get the font of
- * @return the font
- */
- public static Font getFont(RadioButton radioButton) {
- return ScilabRadioButtonBridge.getFont(radioButton);
- }
-
- /**
- * Set if the RadioButton is enabled or not
- * @param radioButton the RadioButton we want to set the status of
- * @param status true if the RadioButton is enabled
- */
- public static void setEnabled(RadioButton radioButton, boolean status) {
- ScilabRadioButtonBridge.setEnabled(radioButton, status);
- }
-
- /**
- * Gets the enable status of a RadioButton
- * @param radioButton the RadioButton we want to get the status of
- * @return the enable status of the RadioButton (true if the RadioButton is enabled, false if not)
- */
- public static boolean isEnabled(RadioButton radioButton) {
- return ScilabRadioButtonBridge.isEnabled(radioButton);
- }
-
- /**
- * Add a callback to the RadioButton
- * @param radioButton the RadioButton we want to set the callback of
- * @param callback the callback to set.
- */
- public static void setCallback(RadioButton radioButton, CommonCallBack callback) {
- ScilabRadioButtonBridge.setCallback(radioButton, callback);
- }
-
- /**
- * Set the horizontal alignment for the RadioButton text
- * @param radioButton the RadioButton we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setHorizontalAlignment(RadioButton radioButton, String alignment) {
- ScilabRadioButtonBridge.setHorizontalAlignment(radioButton, alignment);
- }
-
- /**
- * Set the vertical alignment for the RadioButton text
- * @param radioButton the RadioButton we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setVerticalAlignment(RadioButton radioButton, String alignment) {
- ScilabRadioButtonBridge.setVerticalAlignment(radioButton, alignment);
- }
-
- /**
- * Set if the RadioButton is checked or not
- * @param radioButton the RadioButton we want to set the status of
- * @param status true to set the RadioButon checked
- */
- public static void setChecked(RadioButton radioButton, boolean status) {
- ScilabRadioButtonBridge.setChecked(radioButton, status);
- }
-
- /**
- * Get the status of the RadioButton
- * @param radioButton the RadioButton we want to get the status of
- * @return true if the RadioButton is checked
- */
- public static boolean isChecked(RadioButton radioButton) {
- return ScilabRadioButtonBridge.isChecked(radioButton);
- }
-
- /**
- * Set the Relief of the RadioButton
- * @param radioButton the RadioButton which we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(RadioButton radioButton, String reliefType) {
- ScilabRadioButtonBridge.setRelief(radioButton, reliefType);
- }
-
- /**
- * Delete the RadioButton
- * @param radioButton the RadioButton to be destroyed
- */
- public static void destroy(RadioButton radioButton) {
- ScilabRadioButtonBridge.destroy(radioButton);
- }
-
- /**
- * Give the focus to the RadioButton
- * @param radioButton the RadioButton
- */
- public static void requestFocus(RadioButton radioButton) {
- ScilabRadioButtonBridge.requestFocus(radioButton);
- }
-
- /*****************/
- /* Slider Bridge */
- /*****************/
-
- /**
- * Creates a new Slider
- * @return the created Slider
- */
- public static SimpleSlider createSlider() {
- return ScilabSliderBridge.createSlider();
- }
-
- /**
- * Sets the Text of a Slider
- * @param slider the Slider we want to set the Text of
- * @param newText the Text to set for the Slider
- */
- public static void setText(Slider slider, String newText) {
- ScilabSliderBridge.setText(slider, newText);
- }
-
- /**
- * Gets the text of an Slider
- * @param slider the Slider we want to get the text of
- * @return the text of the Slider
- */
- public static String getText(Slider slider) {
- return ScilabSliderBridge.getText(slider);
- }
-
- /**
- * Draws a Scilab Slider
- * @param slider the Slider to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(Slider slider) {
- ScilabSliderBridge.draw(slider);
- }
-
- /**
- * Gets the dimensions (width and height) of a Scilab Slider
- * @param slider the Slider we want to get the dimensions of
- * @return the size of the slider
- * @see org.scilab.modules.ihm.UIElement#getDims()
- */
- public static Size getDims(Slider slider) {
- return ScilabSliderBridge.getDims(slider);
- }
-
- /**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab slider
- * @param slider the slider we want to get the position of
- * @return the position of the slider
- * @see org.scilab.modules.ihm.UIElement#getPosition()
- */
- public static Position getPosition(Slider slider) {
- return ScilabSliderBridge.getPosition(slider);
- }
-
- /**
- * Gets the visibility status of a Scilab Slider
- * @param slider the slider we want to get the visiblity status of
- * @return the visibility status of the slider (true if the slider is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
- */
- public static boolean isVisible(Slider slider) {
- return ScilabSliderBridge.isVisible(slider);
- }
-
- /**
- * Sets the dimensions (width and height) of a Scilab Slider
- * @param slider the slider we want to set the dimensions of
- * @param newSize the size we want to set to the slider
- * @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
- */
- public static void setDims(Slider slider, Size newSize) {
- ScilabSliderBridge.setDims(slider, newSize);
- }
-
- /**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab slider
- * @param slider the slider we want to set the position of
- * @param newPosition the position we want to set to the slider
- * @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
- */
- public static void setPosition(Slider slider, Position newPosition) {
- ScilabSliderBridge.setPosition(slider, newPosition);
- }
-
- /**
- * Sets the visibility status of a Scilab Slider
- * @param slider the slider we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the slider (true to set the slider visible, false else)
- * @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
- */
- public static void setVisible(Slider slider, boolean newVisibleState) {
- ScilabSliderBridge.setVisible(slider, newVisibleState);
- }
-
- /**
- * Set the Background color of the Slider
- * @param slider the Slider we want to set the background of
- * @param color the Color
- */
- public static void setBackground(Slider slider, Color color) {
- ScilabSliderBridge.setBackground(slider, color);
- }
-
- /**
- * Get the Background color of the Slider
- * @param slider the Slider we want to get the background of
- * @return the Color
- */
- public static Color getBackground(Slider slider) {
- return ScilabSliderBridge.getBackground(slider);
- }
-
- /**
- * Set the Foreground color of the Slider
- * @param slider the Slider we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(Slider slider, Color color) {
- ScilabSliderBridge.setForeground(slider, color);
- }
-
- /**
- * Get the Foreground color of the Slider
- * @param slider the Slider we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(Slider slider) {
- return ScilabSliderBridge.getForeground(slider);
- }
-
- /**
- * Set the font of the Slider.
- * @param slider the Slider we want to set the font of
- * @param font the font
- */
- public static void setFont(Slider slider, Font font) {
- ScilabSliderBridge.setFont(slider, font);
- }
-
- /**
- * Get the font of the Slider.
- * @param slider the Slider we want to get the font of
- * @return the font
- */
- public static Font getFont(Slider slider) {
- return ScilabSliderBridge.getFont(slider);
- }
-
- /**
- * Set if the Slider is enabled or not
- * @param slider the Slider we want to set the status of
- * @param status true if the Slider is enabled
- */
- public static void setEnabled(Slider slider, boolean status) {
- ScilabSliderBridge.setEnabled(slider, status);
- }
-
- /**
- * Gets the enable status of an Slider
- * @param slider the Slider we want to get the status of
- * @return the enable status of the Slider (true if the Slider is enabled, false if not)
- */
- public static boolean isEnabled(Slider slider) {
- return ScilabSliderBridge.isEnabled(slider);
- }
-
- /**
- * Add a callback to the Slider
- * @param slider the Slider we want to set the callback of
- * @param callback the CallBack to set.
- */
- public static void setCallback(Slider slider, CommonCallBack callback) {
- ScilabSliderBridge.setCallback(slider, callback);
- }
-
- /**
- * Set the horizontal alignment for the Slider text
- * @param slider the Slider we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setHorizontalAlignment(Slider slider, String alignment) {
- ScilabSliderBridge.setHorizontalAlignment(slider, alignment);
- }
-
- /**
- * Set the vertical alignment for the Slider text
- * @param slider the Slider we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setVerticalAlignment(Slider slider, String alignment) {
- ScilabSliderBridge.setVerticalAlignment(slider, alignment);
- }
-
- /**
- * Set the minor tick spacing for a Slider
- * @param slider the Slider we want to set the spacing of
- * @param space the increment value
- */
- public static void setMinorTickSpacing(Slider slider, int space) {
- ScilabSliderBridge.setMinorTickSpacing(slider, space);
- }
-
- /**
- * Set the major tick spacing for a Slider
- * @param slider the Slider we want to set the spacing of
- * @param space the increment value
- */
- public static void setMajorTickSpacing(Slider slider, int space) {
- ScilabSliderBridge.setMajorTickSpacing(slider, space);
- }
-
- /**
- * Set the minimum value of a Slider
- * @param slider the Slider we want to set the minimum value of
- * @param value the minimum value
- */
- public static void setMinimumValue(Slider slider, int value) {
- ScilabSliderBridge.setMinimumValue(slider, value);
- }
-
- /**
- * Set the maximum value of a Slider
- * @param slider the Slider we want to set the maximum value of
- * @param value the maximum value
- */
- public static void setMaximumValue(Slider slider, int value) {
- ScilabSliderBridge.setMaximumValue(slider, value);
- }
-
- /**
- * Get the current value of the Slider
- * @param slider the Slider we want to get the value of
- * @return the current value of the Slider
- */
- public static int getValue(Slider slider) {
- return ScilabSliderBridge.getValue(slider);
- }
-
- /**
- * Sets the current value of the Slider
- * @param slider the Slider we want to set the value of
- * @param value the new value
- */
- public static void setUserValue(Slider slider, int value) {
- ScilabSliderBridge.setUserValue(slider, value);
- }
-
- /**
- * Set the Relief of the Slider
- * @param slider the Slider which we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(Slider slider, String reliefType) {
- ScilabSliderBridge.setRelief(slider, reliefType);
- }
-
- /**
- * Set the slider orientation to vertical
- * @param slider the slider we want to set the orientation of
- */
- public static void setVertical(Slider slider) {
- ScilabSliderBridge.setVertical(slider);
- }
-
- /**
- * Set the slider orientation to horizontal
- * @param slider the slider we want to set the orientation of
- */
- public static void setHorizontal(Slider slider) {
- ScilabSliderBridge.setHorizontal(slider);
- }
-
- /**
- * Delete the Slider
- * @param slider the Slider to be destroyed
- */
- public static void destroy(Slider slider) {
- ScilabSliderBridge.destroy(slider);
- }
-
- /**
- * Give the focus to the Slider
- * @param slider the Slider
- */
- public static void requestFocus(Slider slider) {
- ScilabSliderBridge.requestFocus(slider);
- }
-
- /******************/
- /* ListBox Bridge */
- /******************/
-
- /**
- * Creates a new ListBox
- * @return the created ListBox
- */
- public static SimpleListBox createListBox() {
- return ScilabListBoxBridge.createListBox();
- }
-
- /**
- * Sets the Text of a ListBox
- * @param listBox the ListBox we want to set the Text of
- * @param newText the Text to set for the ListBox
- */
- public static void setText(ListBox listBox, String newText) {
- ScilabListBoxBridge.setText(listBox, newText);
- }
-
- /**
- * Gets the text of an ListBox
- * @param listBox the ListBox we want to get the text of
- * @return the text of the ListBox
- */
- public static String getText(ListBox listBox) {
- return ScilabListBoxBridge.getText(listBox);
- }
-
- /**
- * Draws a Scilab ListBox
- * @param listBox the ListBox to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(ListBox listBox) {
- ScilabListBoxBridge.draw(listBox);
- }
-
- /**
- * Gets the dimensions (width and height) of a Scilab ListBox
- * @param listBox the ListBox we want to get the dimensions of
- * @return the size of the listBox
- * @see org.scilab.modules.ihm.UIElement#getDims()
- */
- public static Size getDims(ListBox listBox) {
- return ScilabListBoxBridge.getDims(listBox);
- }
-
- /**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab listBox
- * @param listBox the listBox we want to get the position of
- * @return the position of the listBox
- * @see org.scilab.modules.ihm.UIElement#getPosition()
- */
- public static Position getPosition(ListBox listBox) {
- return ScilabListBoxBridge.getPosition(listBox);
- }
-
- /**
- * Gets the visibility status of a Scilab ListBox
- * @param listBox the listBox we want to get the visiblity status of
- * @return the visibility status of the listBox (true if the listBox is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
- */
- public static boolean isVisible(ListBox listBox) {
- return ScilabListBoxBridge.isVisible(listBox);
- }
-
- /**
- * Sets the dimensions (width and height) of a Scilab ListBox
- * @param listBox the listBox we want to set the dimensions of
- * @param newSize the size we want to set to the listBox
- * @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
- */
- public static void setDims(ListBox listBox, Size newSize) {
- ScilabListBoxBridge.setDims(listBox, newSize);
- }
-
- /**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab listBox
- * @param listBox the listBox we want to set the position of
- * @param newPosition the position we want to set to the listBox
- * @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
- */
- public static void setPosition(ListBox listBox, Position newPosition) {
- ScilabListBoxBridge.setPosition(listBox, newPosition);
- }
-
- /**
- * Sets the visibility status of a Scilab ListBox
- * @param listBox the listBox we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the listBox (true to set the listBox visible, false else)
- * @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
- */
- public static void setVisible(ListBox listBox, boolean newVisibleState) {
- ScilabListBoxBridge.setVisible(listBox, newVisibleState);
- }
-
- /**
- * Set the Background color of the ListBox
- * @param listBox the ListBox we want to set the background of
- * @param color the Color
- */
- public static void setBackground(ListBox listBox, Color color) {
- ScilabListBoxBridge.setBackground(listBox, color);
- }
-
- /**
- * Get the Background color of the ListBox
- * @param listBox the ListBox we want to get the background of
- * @return the Color
- */
- public static Color getBackground(ListBox listBox) {
- return ScilabListBoxBridge.getBackground(listBox);
- }
-
- /**
- * Set the Foreground color of the ListBox
- * @param listBox the ListBox we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(ListBox listBox, Color color) {
- ScilabListBoxBridge.setForeground(listBox, color);
- }
-
- /**
- * Get the Foreground color of the ListBox
- * @param listBox the ListBox we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(ListBox listBox) {
- return ScilabListBoxBridge.getForeground(listBox);
- }
-
- /**
- * Set the font of the ListBox.
- * @param listBox the ListBox we want to set the font of
- * @param font the font
- */
- public static void setFont(ListBox listBox, Font font) {
- ScilabListBoxBridge.setFont(listBox, font);
- }
-
- /**
- * Get the font of the ListBox.
- * @param listBox the ListBox we want to get the font of
- * @return the font
- */
- public static Font getFont(ListBox listBox) {
- return ScilabListBoxBridge.getFont(listBox);
- }
-
- /**
- * Set if the ListBox is enabled or not
- * @param listBox the ListBox we want to set the status of
- * @param status true if the ListBox is enabled
- */
- public static void setEnabled(ListBox listBox, boolean status) {
- ScilabListBoxBridge.setEnabled(listBox, status);
- }
-
- /**
- * Gets the enable status of a ListBox
- * @param listBox the ListBox we want to get the status of
- * @return the enable status of the ListBox (true if the ListBox is enabled, false if not)
- */
- public static boolean isEnabled(ListBox listBox) {
- return ScilabListBoxBridge.isEnabled(listBox);
- }
-
- /**
- * Add a callback to the ListBox
- * @param listBox the ListBox we want to set the callback of
- * @param callback the Callback to set.
- */
- public static void setCallback(ListBox listBox, CommonCallBack callback) {
- ScilabListBoxBridge.setCallback(listBox, callback);
- }
-
-
- /**
- * Set the horizontal alignment for the ListBox text
- * @param listBox the ListBox we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setHorizontalAlignment(ListBox listBox, String alignment) {
- ScilabListBoxBridge.setHorizontalAlignment(listBox, alignment);
- }
-
- /**
- * Set the vertical alignment for the ListBox text
- * @param listBox the ListBox we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setVerticalAlignment(ListBox listBox, String alignment) {
- ScilabListBoxBridge.setVerticalAlignment(listBox, alignment);
- }
-
- /**
- * Set if more than one item can be selected in a ListBox
- * @param listBox the ListBox we want to set the status of
- * @param status true if multiple selection is enabled
- */
- public static void setMultipleSelectionEnabled(ListBox listBox, boolean status) {
- ScilabListBoxBridge.setMultipleSelectionEnabled(listBox, status);
- }
-
- /**
- * Set the selected indices of the ListBox
- * @param listBox the ListBox we want to set the selected indices of
- * @param indices the indices of the items to be selected
- */
- public static void setSelectedIndices(ListBox listBox, int[] indices) {
- ScilabListBoxBridge.setSelectedIndices(listBox, indices);
- }
-
- /**
- * Get the selected indices of the ListBox
- * @param listBox the ListBox we want to get the selected indices of
- * @return the indices of the items selected
- */
- public static int[] getSelectedIndices(ListBox listBox) {
- return ScilabListBoxBridge.getSelectedIndices(listBox);
- }
-
- /**
- * Get the number of items selected in the ListBox
- * @param listBox the ListBox we want to get the selection size of
- * @return the number of items selected
- */
- public static int getSelectionSize(ListBox listBox) {
- return ScilabListBoxBridge.getSelectionSize(listBox);
- }
-
- /**
- * Get the text of all the list items
- * @param listBox the ListBox we want to get the items text of
- * @return the text items
- * @see org.scilab.modules.gui.listbox.ListBox#getAllItemsText()
- */
- public static String[] getAllItemsText(ListBox listBox) {
- return ScilabListBoxBridge.getAllItemsText(listBox);
- }
-
- /**
- * Get the number of items in the list
- * @param listBox the ListBox we want to get the items number of
- * @return the number of items
- * @see org.scilab.modules.gui.listbox.ListBox#getNumberOfItems()
- */
- public static int getNumberOfItems(ListBox listBox) {
- return ScilabListBoxBridge.getNumberOfItems(listBox);
- }
-
- /**
- * Set the text of the list items
- * @param listBox the ListBox we want to set the items text of
- * @param text the text of the items
- * @see org.scilab.modules.gui.listbox.ListBox#setText(java.lang.String[])
- */
- public static void setText(ListBox listBox, String[] text) {
- ScilabListBoxBridge.setText(listBox, text);
- }
-
- /**
- * Set the Relief of the ListBox
- * @param listBox the ListBox which we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(ListBox listBox, String reliefType) {
- ScilabListBoxBridge.setRelief(listBox, reliefType);
- }
-
- /**
- * Delete the ListBox
- * @param listBox the ListBox to be destroyed
- */
- public static void destroy(ListBox listBox) {
- ScilabListBoxBridge.destroy(listBox);
- }
-
- /**
- * Give the focus to the ListBox
- * @param listBox the ListBox
- */
- public static void requestFocus(ListBox listBox) {
- ScilabListBoxBridge.requestFocus(listBox);
- }
-
- /**
- * Adjusts the view so that the element given by index is displayed at the top of the ListBox.
- * @param listBox the ListBox
- * @param index the index of the element to be displayed at the top of the ListBox.
- */
- public static void setListBoxTop(ListBox listBox, int index) {
- ScilabListBoxBridge.setListBoxTop(listBox, index);
- }
-
- /**
- * Gets the index of the element displayed at the top of the ListBox
- * @param listBox the ListBox
- * @return the index of the element displayed at the top of the ListBox
- */
- public static int getListBoxTop(ListBox listBox) {
- return ScilabListBoxBridge.getListBoxTop(listBox);
- }
-
- /********************/
- /* PopupMenu Bridge */
- /********************/
-
- /**
- * Creates a new PopupMenu
- * @return the created PopupMenu
- */
- public static SimplePopupMenu createPopupMenu() {
- return ScilabPopupMenuBridge.createPopupMenu();
- }
-
- /**
- * Sets the Text of a PopupMenu
- * @param popupMenu the PopupMenu we want to set the Text of
- * @param newText the Text to set for the PopupMenu
- */
- public static void setText(PopupMenu popupMenu, String newText) {
- ScilabPopupMenuBridge.setText(popupMenu, newText);
- }
-
- /**
- * Gets the text of an PopupMenu
- * @param popupMenu the PopupMenu we want to get the text of
- * @return the text of the PopupMenu
- */
- public static String getText(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.getText(popupMenu);
- }
-
- /**
- * Draws a Scilab PopupMenu
- * @param popupMenu the PopupMenu to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(PopupMenu popupMenu) {
- ScilabPopupMenuBridge.draw(popupMenu);
+ public static Position getPosition(TextBox textBox) {
+ return ScilabTextBoxBridge.getPosition(textBox);
}
/**
- * Gets the dimensions (width and height) of a Scilab PopupMenu
- * @param popupMenu the PopupMenu we want to get the dimensions of
- * @return the size of the popupMenu
- * @see org.scilab.modules.ihm.UIElement#getDims()
+ * Gets the visibility status of a Scilab TextBox
+ * @param textBox the textBox we want to get the visiblity status of
+ * @return the visibility status of the textBox (true if the textBox is visible, false if not)
+ * @see org.scilab.modules.ihm.UIElement#isVisible()
*/
- public static Size getDims(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.getDims(popupMenu);
+ public static boolean isVisible(TextBox textBox) {
+ return ScilabTextBoxBridge.isVisible(textBox);
}
/**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab popupMenu
- * @param popupMenu the popupMenu we want to get the position of
- * @return the position of the popupMenu
- * @see org.scilab.modules.ihm.UIElement#getPosition()
+ * Set the status of the TextBox
+ * @param textBox the textBox we want to set the status of
+ * @param status true if the TextBox is enabled
+ * @see org.scilab.modules.gui.widget.Widget#setEnabled(boolean)
*/
- public static Position getPosition(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.getPosition(popupMenu);
+ public static void setEnabled(TextBox textBox, boolean status) {
+ ScilabTextBoxBridge.setEnabled(textBox, status);
}
/**
- * Gets the visibility status of a Scilab PopupMenu
- * @param popupMenu the popupMenu we want to get the visiblity status of
- * @return the visibility status of the popupMenu (true if the popupMenu is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
+ * Gets the enable status of a TextBox
+ * @param textBox the textBox we want to get the status of
+ * @return the enable status of the TextBox (true if the TextBox is enabled, false if not)
*/
- public static boolean isVisible(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.isVisible(popupMenu);
+ public static boolean isEnabled(TextBox textBox) {
+ return ScilabTextBoxBridge.isEnabled(textBox);
}
/**
- * Sets the dimensions (width and height) of a Scilab PopupMenu
- * @param popupMenu the popupMenu we want to set the dimensions of
- * @param newSize the size we want to set to the popupMenu
+ * Sets the dimensions (width and height) of a Scilab TextBox
+ * @param textBox the textBox we want to set the dimensions of
+ * @param newSize the size we want to set to the textBox
* @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
*/
- public static void setDims(PopupMenu popupMenu, Size newSize) {
- ScilabPopupMenuBridge.setDims(popupMenu, newSize);
+ public static void setDims(TextBox textBox, Size newSize) {
+ ScilabTextBoxBridge.setDims(textBox, newSize);
}
/**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab popupMenu
- * @param popupMenu the popupMenu we want to set the position of
- * @param newPosition the position we want to set to the popupMenu
+ * Sets the position (X-coordinate and Y-coordinate) of a Scilab textBox
+ * @param textBox the textBox we want to set the position of
+ * @param newPosition the position we want to set to the textBox
* @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
*/
- public static void setPosition(PopupMenu popupMenu, Position newPosition) {
- ScilabPopupMenuBridge.setPosition(popupMenu, newPosition);
+ public static void setPosition(TextBox textBox, Position newPosition) {
+ ScilabTextBoxBridge.setPosition(textBox, newPosition);
}
/**
- * Sets the visibility status of a Scilab PopupMenu
- * @param popupMenu the popupMenu we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the popupMenu (true to set the popupMenu visible, false else)
+ * Sets the visibility status of a Scilab TextBox
+ * @param textBox the textBox we want to set the visiblity status of
+ * @param newVisibleState the visibility status we want to set to the textBox (true to set the textBox visible, false else)
* @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
*/
- public static void setVisible(PopupMenu popupMenu, boolean newVisibleState) {
- ScilabPopupMenuBridge.setVisible(popupMenu, newVisibleState);
+ public static void setVisible(TextBox textBox, boolean newVisibleState) {
+ ScilabTextBoxBridge.setVisible(textBox, newVisibleState);
}
/**
- * Set the Background color of the PopupMenu
- * @param popupMenu the PopupMenu we want to set the background of
+ * Set the Background color of the textbox
+ * @param textBox the textbox we want to set the background of
* @param color the Color
*/
- public static void setBackground(PopupMenu popupMenu, Color color) {
- ScilabPopupMenuBridge.setBackground(popupMenu, color);
+ public static void setBackground(TextBox textBox, Color color) {
+ ScilabTextBoxBridge.setBackground(textBox, color);
}
/**
- * Get the Background color of the PopupMenu
- * @param popupMenu the PopupMenu we want to get the background of
+ * Get the Background color of the textbox
+ * @param textBox the textbox we want to get the background of
* @return the Color
*/
- public static Color getBackground(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.getBackground(popupMenu);
+ public static Color getBackground(TextBox textBox) {
+ return ScilabTextBoxBridge.getBackground(textBox);
}
/**
- * Set the Foreground color of the PopupMenu
- * @param popupMenu the PopupMenu we want to set the foreground of
+ * Set the Foreground color of the textbox
+ * @param textBox the textbox we want to set the foreground of
* @param color the Color
*/
- public static void setForeground(PopupMenu popupMenu, Color color) {
- ScilabPopupMenuBridge.setForeground(popupMenu, color);
+ public static void setForeground(TextBox textBox, Color color) {
+ ScilabTextBoxBridge.setForeground(textBox, color);
}
/**
- * Get the Foreground color of the PopupMenu
- * @param popupMenu the PopupMenu we want to get the foreground of
+ * Get the Foreground color of the textbox
+ * @param textBox the textbox we want to get the foreground of
* @return the Color
*/
- public static Color getForeground(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.getForeground(popupMenu);
+ public static Color getForeground(TextBox textBox) {
+ return ScilabTextBoxBridge.getForeground(textBox);
}
/**
- * Set the font of the PopupMenu.
- * @param popupMenu the PopupMenu we want to set the font of
+ * Set the font of the textbox.
+ * @param textBox the textbox we want to set the font of
* @param font the font
*/
- public static void setFont(PopupMenu popupMenu, Font font) {
- ScilabPopupMenuBridge.setFont(popupMenu, font);
+ public static void setFont(TextBox textBox, Font font) {
+ ScilabTextBoxBridge.setFont(textBox, font);
}
/**
- * Get the font of the PopupMenu.
- * @param popupMenu the PopupMenu we want to get the font of
+ * Get the font of the textbox.
+ * @param textBox the textbox we want to get the font of
* @return the font
*/
- public static Font getFont(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.getFont(popupMenu);
- }
-
- /**
- * Set if the PopupMenu is enabled or not
- * @param popupMenu the PopupMenu we want to set the status of
- * @param status true if the PopupMenu is enabled
- */
- public static void setEnabled(PopupMenu popupMenu, boolean status) {
- ScilabPopupMenuBridge.setEnabled(popupMenu, status);
- }
-
- /**
- * Gets the enable status of a PopupMenu
- * @param popupMenu the PopupMenu we want to get the status of
- * @return the enable status of the PopupMenu (true if the PopupMenu is enabled, false if not)
- */
- public static boolean isEnabled(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.isEnabled(popupMenu);
+ public static Font getFont(TextBox textBox) {
+ return ScilabTextBoxBridge.getFont(textBox);
}
/**
- * Add a callback to the PopupMenu
- * @param popupMenu the PopupMenu we want to set the callback of
+ * Add a callback to the TextBox
+ * @param textBox the TextBox we want to set the callback of
* @param callback the CallBack to set.
*/
- public static void setCallback(PopupMenu popupMenu, CommonCallBack callback) {
- ScilabPopupMenuBridge.setCallback(popupMenu, callback);
+ public static void setCallback(TextBox textBox, CommonCallBack callback) {
+ ScilabTextBoxBridge.setCallback(textBox, callback);
}
/**
- * Set the horizontal alignment for the PopupMenu text
- * @param popupMenu the PopupMenu we want to set the alignment of
+ * Set the horizontal alignment for the TextBox text
+ * @param textBox the TextBox we want to set the alignment of
* @param alignment the value for the alignment (See ScilabAlignment.java)
*/
- public static void setHorizontalAlignment(PopupMenu popupMenu, String alignment) {
- ScilabPopupMenuBridge.setHorizontalAlignment(popupMenu, alignment);
+ public static void setHorizontalAlignment(TextBox textBox, String alignment) {
+ ScilabTextBoxBridge.setHorizontalAlignment(textBox, alignment);
}
/**
- * Set the vertical alignment for the PopupMenu text
- * @param popupMenu the PopupMenu we want to set the alignment of
+ * Set the vertical alignment for the TextBox text
+ * @param textBox the TextBox we want to set the alignment of
* @param alignment the value for the alignment (See ScilabAlignment.java)
*/
- public static void setVerticalAlignment(PopupMenu popupMenu, String alignment) {
- ScilabPopupMenuBridge.setVerticalAlignment(popupMenu, alignment);
- }
-
- /**
- * Set the selected index of the ListBox
- * @param popupMenu the PopupMenu we want to set the selected index of
- * @param index the index of the item to be selected
- */
- public static void setUserSelectedIndex(PopupMenu popupMenu, int index) {
- ScilabPopupMenuBridge.setUserSelectedIndex(popupMenu, index);
- }
-
- /**
- * Get the selected index of the ListBox
- * @param popupMenu the PopupMenu we want to get the selected index of
- * @return the index of the item selected
- */
- public static int getUserSelectedIndex(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.getUserSelectedIndex(popupMenu);
- }
-
- /**
- * Get the text of all the PopupMenu items
- * @param popupMenu the PopupMenu we want to get the items of
- * @return the text items
- */
- public static String[] getAllItemsText(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.getAllItemsText(popupMenu);
- }
-
- /**
- * Get the number of items in the PopupMenu
- * @param popupMenu the PopupMenu we want to get the items number of
- * @return the number of items
- */
- public static int getNumberOfItems(PopupMenu popupMenu) {
- return ScilabPopupMenuBridge.getNumberOfItems(popupMenu);
- }
-
- /**
- * Set the text of the PopupMenu items
- * @param popupMenu the PopupMenu we want to set the text items of
- * @param text the text of the items
- */
- public static void setText(PopupMenu popupMenu, String[] text) {
- ScilabPopupMenuBridge.setText(popupMenu, text);
+ public static void setVerticalAlignment(TextBox textBox, String alignment) {
+ ScilabTextBoxBridge.setVerticalAlignment(textBox, alignment);
}
/**
- * Set the Relief of the PopupMenu
- * @param popupMenu the PopupMenu which we want to set the Relief of
+ * Set the Relief of the TextBox
+ * @param textBox the TextBox which we want to set the Relief of
* @param reliefType the type of the relief to set (See ScilabRelief.java)
*/
- public static void setRelief(PopupMenu popupMenu, String reliefType) {
- ScilabPopupMenuBridge.setRelief(popupMenu, reliefType);
+ public static void setRelief(TextBox textBox, String reliefType) {
+ ScilabTextBoxBridge.setRelief(textBox, reliefType);
}
/**
- * Delete the PopupMenu
- * @param popupMenu the PopupMenu to be destroyed
+ * Delete the TextBox
+ * @param textBox the TextBox to be destroyed
*/
- public static void destroy(PopupMenu popupMenu) {
- ScilabPopupMenuBridge.destroy(popupMenu);
+ public static void destroy(TextBox textBox) {
+ ScilabTextBoxBridge.destroy(textBox);
}
/**
- * Give the focus to the PopupMenu
- * @param popupMenu the PopupMenu
+ * Give the focus to the TextBox
+ * @param textBox the TextBox
*/
- public static void requestFocus(PopupMenu popupMenu) {
- ScilabPopupMenuBridge.requestFocus(popupMenu);
+ public static void requestFocus(TextBox textBox) {
+ ScilabTextBoxBridge.requestFocus(textBox);
}
/***********************/
}
/**********************/
- /* UiTable Bridge */
- /**********************/
-
- /**
- * Creates a new UiTable
- * @return the created UiTable
- */
- public static SimpleUiTable createUiTable() {
- return ScilabUiTableBridge.createUiTable();
- }
-
- /**
- * Sets the Text of a UiTable
- * @param uiTable the UiTable we want to set the Text of
- * @param newText the Text to set for the UiTable
- */
- public static void setText(UiTable uiTable, String newText) {
- ScilabUiTableBridge.setText(uiTable, newText);
- }
-
- /**
- * Gets the text of an UiTable
- * @param uiTable the UiTable we want to get the text of
- * @return the text of the UiTable
- */
- public static String getText(UiTable uiTable) {
- return ScilabUiTableBridge.getText(uiTable);
- }
-
- /**
- * Draws a Scilab UiTable
- * @param uiTable the UiTable to draw
- * @see org.scilab.modules.ihm.UIElement#draw()
- */
- public static void draw(UiTable uiTable) {
- ScilabUiTableBridge.draw(uiTable);
- }
-
- /**
- * Gets the dimensions (width and height) of a Scilab UiTable
- * @param uiTable the UiTable we want to get the dimensions of
- * @return the size of the uiTable
- * @see org.scilab.modules.ihm.UIElement#getDims()
- */
- public static Size getDims(UiTable uiTable) {
- return ScilabUiTableBridge.getDims(uiTable);
- }
-
- /**
- * Gets the position (X-coordinate and Y-coordinate) of a Scilab uiTable
- * @param uiTable the uiTable we want to get the position of
- * @return the position of the uiTable
- * @see org.scilab.modules.ihm.UIElement#getPosition()
- */
- public static Position getPosition(UiTable uiTable) {
- return ScilabUiTableBridge.getPosition(uiTable);
- }
-
- /**
- * Gets the visibility status of a Scilab UiTable
- * @param uiTable the uiTable we want to get the visiblity status of
- * @return the visibility status of the uiTable (true if the uiTable is visible, false if not)
- * @see org.scilab.modules.ihm.UIElement#isVisible()
- */
- public static boolean isVisible(UiTable uiTable) {
- return ScilabUiTableBridge.isVisible(uiTable);
- }
-
- /**
- * Sets the dimensions (width and height) of a Scilab UiTable
- * @param uiTable the uiTable we want to set the dimensions of
- * @param newSize the size we want to set to the uiTable
- * @see org.scilab.modules.ihm.UIElement#setDims(org.scilab.modules.ihm.utils.Size)
- */
- public static void setDims(UiTable uiTable, Size newSize) {
- ScilabUiTableBridge.setDims(uiTable, newSize);
- }
-
- /**
- * Sets the position (X-coordinate and Y-coordinate) of a Scilab uiTable
- * @param uiTable the uiTable we want to set the position of
- * @param newPosition the position we want to set to the uiTable
- * @see org.scilab.modules.ihm.UIElement#setPosition(org.scilab.modules.ihm.utils.Position)
- */
- public static void setPosition(UiTable uiTable, Position newPosition) {
- ScilabUiTableBridge.setPosition(uiTable, newPosition);
- }
-
- /**
- * Sets the visibility status of a Scilab UiTable
- * @param uiTable the uiTable we want to set the visiblity status of
- * @param newVisibleState the visibility status we want to set to the uiTable (true to set the uiTable visible, false else)
- * @see org.scilab.modules.ihm.UIElement#setVisible(boolean)
- */
- public static void setVisible(UiTable uiTable, boolean newVisibleState) {
- ScilabUiTableBridge.setVisible(uiTable, newVisibleState);
- }
-
- /**
- * Set the Background color of the UiTable
- * @param uiTable the UiTable we want to set the background of
- * @param color the Color
- */
- public static void setBackground(UiTable uiTable, Color color) {
- ScilabUiTableBridge.setBackground(uiTable, color);
- }
-
- /**
- * Get the Background color of the UiTable
- * @param uiTable the UiTable we want to get the background of
- * @return the Color
- */
- public static Color getBackground(UiTable uiTable) {
- return ScilabUiTableBridge.getBackground(uiTable);
- }
-
- /**
- * Set the Foreground color of the UiTable
- * @param uiTable the UiTable we want to set the foreground of
- * @param color the Color
- */
- public static void setForeground(UiTable uiTable, Color color) {
- ScilabUiTableBridge.setForeground(uiTable, color);
- }
-
- /**
- * Get the Foreground color of the UiTable
- * @param uiTable the UiTable we want to get the foreground of
- * @return the Color
- */
- public static Color getForeground(UiTable uiTable) {
- return ScilabUiTableBridge.getForeground(uiTable);
- }
-
- /**
- * Set the font of the UiTable.
- * @param uiTable the UiTable we want to set the font of
- * @param font the font
- */
- public static void setFont(UiTable uiTable, Font font) {
- ScilabUiTableBridge.setFont(uiTable, font);
- }
-
- /**
- * Get the font of the UiTable.
- * @param uiTable the UiTable we want to get the font of
- * @return the font
- */
- public static Font getFont(UiTable uiTable) {
- return ScilabUiTableBridge.getFont(uiTable);
- }
-
- /**
- * Set if the UiTable is enabled or not
- * @param uiTable the UiTable we want to set the status of
- * @param status true if the UiTable is enabled
- */
- public static void setEnabled(UiTable uiTable, boolean status) {
- ScilabUiTableBridge.setEnabled(uiTable, status);
- }
-
- /**
- * Gets the enable status of a UiTable
- * @param uiTable the UiTable we want to get the status of
- * @return the enable status of the UiTable (true if the UiTable is enabled, false if not)
- */
- public static boolean isEnabled(UiTable uiTable) {
- return ScilabUiTableBridge.isEnabled(uiTable);
- }
-
- /**
- * Add a callback to the UiTable
- * @param uiTable the UiTable we want to set the callback of
- * @param callback the Callback to set.
- */
- public static void setCallback(UiTable uiTable, CommonCallBack callback) {
- ScilabUiTableBridge.setCallback(uiTable, callback);
- }
-
- /**
- * Set the horizontal alignment for the UiTable text
- * @param uiTable the UiTable we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setHorizontalAlignment(UiTable uiTable, String alignment) {
- ScilabUiTableBridge.setHorizontalAlignment(uiTable, alignment);
- }
-
- /**
- * Set the vertical alignment for the UiTable text
- * @param uiTable the UiTable we want to set the alignment of
- * @param alignment the value for the alignment (See ScilabAlignment.java)
- */
- public static void setVerticalAlignment(UiTable uiTable, String alignment) {
- ScilabUiTableBridge.setVerticalAlignment(uiTable, alignment);
- }
-
- /**
- * Set the Relief of the UiTable
- * @param uiTable the UiTable which we want to set the Relief of
- * @param reliefType the type of the relief to set (See ScilabRelief.java)
- */
- public static void setRelief(UiTable uiTable, String reliefType) {
- ScilabUiTableBridge.setRelief(uiTable, reliefType);
- }
-
- /**
- * Delete the UiTable
- * @param uiTable the UiTable to be destroyed
- */
- public static void destroy(UiTable uiTable) {
- ScilabUiTableBridge.destroy(uiTable);
- }
-
- /**
- * Give the focus to the UiTable
- * @param uiTable the UiTable
- */
- public static void requestFocus(UiTable uiTable) {
- ScilabUiTableBridge.requestFocus(uiTable);
- }
-
- /**
- * Sets the column names for uitable
- * @param uiTable the UiTable
- * @param text the String that contains column names delimited by a '|'. Example: 1|2|3|4
- */
- public static void setColnames(UiTable uiTable, String text) {
- ScilabUiTableBridge.setColnames(uiTable, text);
- }
-
- /**
- * Sets the row names for uitable
- * @param uiTable the UiTable
- * @param text the String that contains row names delimited by a '|'. Example: 1|2|3|4
- */
- public static void setRownames(UiTable uiTable, String text) {
- ScilabUiTableBridge.setRownames(uiTable, text);
- }
-
- /**
- * Sets the Data for uitable
- * @param uiTable the UiTable
- * @param text the String that contains row data delimited by a '|'
- * and column data delimited by " ". Example: 1.26 3.47 | a b | d e | a b
- */
- public static void setData(UiTable uiTable, String text) {
- ScilabUiTableBridge.setData(uiTable, text);
- }
-
- /**********************/
/* UiDisplayTree Bridge */
/**********************/