|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.runtime.SwingGroovyMethods
class SwingGroovyMethods extends Object
This class defines all the new Swing-related groovy methods which enhance the normal JDK Swing classes when inside the Groovy environment. Static methods are used with the first parameter the destination class.
Constructor Summary | |
SwingGroovyMethods()
|
Method Summary | |
---|---|
static void
|
clear(Container self)
Removes all components from the Container. |
static void
|
clear(DefaultListModel self)
Removes all elements from the DefaultListModel. |
static void
|
clear(JComboBox self)
Removes all items from the JComboBox. |
static void
|
clear(DefaultMutableTreeNode self)
Removes all children nodes from the DefaultMutableTreeNode. |
static void
|
clear(JTabbedPane self)
Removes all elements from the JTabbedPane. |
static Component
|
getAt(Container self, int index)
Support the subscript operator for Container. |
static AbstractButton
|
getAt(ButtonGroup self, int index)
Support the subscript operator for ButtonGroup. |
static Object
|
getAt(ListModel self, int index)
Support the subscript operator for ListModel. |
static Object
|
getAt(JComboBox self, int index)
Support the subscript operator for JComboBox. |
static Object[]
|
getAt(TableModel self, int index)
Support the subscript operator for TableModel. |
static TableColumn
|
getAt(TableColumnModel self, int index)
Support the subscript operator for TableColumnModel. |
static Object
|
getAt(TreePath self, int index)
Support the subscript operator for TreePath. |
static TreeNode
|
getAt(TreeNode self, int index)
Support the subscript operator for TreeNode. |
static Component
|
getAt(JMenu self, int index)
Support the subscript operator for JMenu. |
static JMenu
|
getAt(JMenuBar self, int index)
Support the subscript operator for JMenuBar. |
static Component
|
getAt(JTabbedPane self, int index)
Support the subscript operator for JTabbedPane. |
static Component
|
getAt(JToolBar self, int index)
Support the subscript operator for JToolBar. |
static Iterator
|
iterator(Container self)
Returns an { |
static Iterator
|
iterator(ButtonGroup self)
Returns an { |
static Iterator
|
iterator(ListModel self)
Returns an { |
static Iterator
|
iterator(DefaultListModel self)
Returns an { |
static Iterator
|
iterator(JComboBox self)
Returns an { |
static Iterator
|
iterator(MutableComboBoxModel self)
Returns an { |
static Iterator
|
iterator(TableModel self)
Returns an { |
static Iterator
|
iterator(DefaultTableModel self)
Returns an { |
static Iterator
|
iterator(TableColumnModel self)
Returns an { |
static Iterator
|
iterator(TreePath self)
Returns an { |
static Iterator
|
iterator(TreeNode self)
Returns an { |
static Iterator
|
iterator(JMenu self)
Returns an { |
static Iterator
|
iterator(JMenuBar self)
Returns an { |
static Iterator
|
iterator(JPopupMenu self)
Returns an { |
static Iterator
|
iterator(JTabbedPane self)
Returns an { |
static Container
|
leftShift(Container self, Component c)
Overloads the left shift operator to provide an easy way to add components to a Container. |
static ButtonGroup
|
leftShift(ButtonGroup self, AbstractButton b)
Overloads the left shift operator to provide an easy way to add buttons to a ButtonGroup. |
static DefaultListModel
|
leftShift(DefaultListModel self, Object e)
Overloads the left shift operator to provide an easy way to add elements to a DefaultListModel. |
static JComboBox
|
leftShift(JComboBox self, Object i)
Overloads the left shift operator to provide an easy way to add items to a JComboBox. |
static MutableComboBoxModel
|
leftShift(MutableComboBoxModel self, Object i)
Overloads the left shift operator to provide an easy way to add items to a MutableComboBoxModel. |
static DefaultTableModel
|
leftShift(DefaultTableModel self, Object row)
Overloads the left shift operator to provide an easy way to add rows to a DefaultTableModel. |
static TableColumnModel
|
leftShift(TableColumnModel self, TableColumn column)
Overloads the left shift operator to provide an easy way to add columns to a TableColumnModel. |
static TreePath
|
leftShift(TreePath self, Object p)
Overloads the left shift operator to provide an easy way to add paths to a treePath. |
static MutableTreeNode
|
leftShift(MutableTreeNode self, MutableTreeNode node)
Overloads the left shift operator to provide an easy way to add nodes to a MutableTreeNode. |
static DefaultMutableTreeNode
|
leftShift(DefaultMutableTreeNode self, DefaultMutableTreeNode node)
Overloads the left shift operator to provide an easy way to add nodes to a DefaultMutableTreeNode. |
static JMenu
|
leftShift(JMenu self, Action action)
Overloads the left shift operator to provide an easy way to add components to a menu. |
static JMenu
|
leftShift(JMenu self, Component component)
Overloads the left shift operator to provide an easy way to add components to a menu. |
static JMenu
|
leftShift(JMenu self, JMenuItem item)
Overloads the left shift operator to provide an easy way to add components to a menu. |
static JMenu
|
leftShift(JMenu self, String str)
Overloads the left shift operator to provide an easy way to add components to a menu. |
static JMenu
|
leftShift(JMenu self, GString gstr)
Overloads the left shift operator to provide an easy way to add components to a menu. |
static JMenuBar
|
leftShift(JMenuBar self, JMenu menu)
Overloads the left shift operator to provide an easy way to add menus to a menuBar. |
static JPopupMenu
|
leftShift(JPopupMenu self, Action action)
Overloads the left shift operator to provide an easy way to add components to a popupMenu. |
static JPopupMenu
|
leftShift(JPopupMenu self, Component component)
Overloads the left shift operator to provide an easy way to add components to a popupMenu. |
static JPopupMenu
|
leftShift(JPopupMenu self, JMenuItem item)
Overloads the left shift operator to provide an easy way to add components to a popupMenu. |
static JPopupMenu
|
leftShift(JPopupMenu self, String str)
Overloads the left shift operator to provide an easy way to add components to a popupMenu. |
static JPopupMenu
|
leftShift(JPopupMenu self, GString gstr)
Overloads the left shift operator to provide an easy way to add components to a popupMenu. |
static JToolBar
|
leftShift(JToolBar self, Action action)
Overloads the left shift operator to provide an easy way to add components to a toolBar. |
static void
|
putAt(DefaultListModel self, int index, Object e)
Allow DefaultListModel to work with subscript operators. |
static void
|
putAt(MutableComboBoxModel self, int index, Object i)
Allow MutableComboBoxModel to work with subscript operators. |
static void
|
putAt(DefaultTableModel self, int index, Object row)
Allow DefaultTableModel to work with subscript operators. |
static void
|
putAt(MutableTreeNode self, int index, MutableTreeNode node)
Allow MutableTreeNode to work with subscript operators. |
static int
|
size(Container self)
Provide the standard Groovy |
static int
|
size(ButtonGroup self)
Provide the standard Groovy |
static int
|
size(ListModel self)
Provide the standard Groovy |
static int
|
size(JComboBox self)
Provide the standard Groovy |
static int
|
size(TableModel self)
Provide the standard Groovy |
static int
|
size(TableColumnModel self)
Provide the standard Groovy |
static int
|
size(TreePath self)
Provide the standard Groovy |
static int
|
size(TreeNode self)
Provide the standard Groovy |
static int
|
size(JMenu self)
Provide the standard Groovy |
static int
|
size(JMenuBar self)
Provide the standard Groovy |
static int
|
size(JTabbedPane self)
Provide the standard Groovy |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
SwingGroovyMethods()
Method Detail |
---|
public static void clear(Container self)
public static void clear(DefaultListModel self)
public static void clear(JComboBox self)
public static void clear(DefaultMutableTreeNode self)
public static void clear(JTabbedPane self)
public static Component getAt(Container self, int index)
public static AbstractButton getAt(ButtonGroup self, int index)
public static Object getAt(ListModel self, int index)
public static Object getAt(JComboBox self, int index)
public static Object[] getAt(TableModel self, int index)
public static TableColumn getAt(TableColumnModel self, int index)
public static Object getAt(TreePath self, int index)
public static TreeNode getAt(TreeNode self, int index)
public static Component getAt(JMenu self, int index)
public static JMenu getAt(JMenuBar self, int index)
public static Component getAt(JTabbedPane self, int index)
public static Component getAt(JToolBar self, int index)
public static Iterator iterator(Container self)
public static Iterator iterator(ButtonGroup self)
public static Iterator iterator(ListModel self)
public static Iterator iterator(DefaultListModel self)
public static Iterator iterator(JComboBox self)
public static Iterator iterator(MutableComboBoxModel self)
public static Iterator iterator(TableModel self)
public static Iterator iterator(DefaultTableModel self)
public static Iterator iterator(TableColumnModel self)
public static Iterator iterator(TreePath self)
@SuppressWarnings("unchecked") public static Iterator iterator(TreeNode self)
public static Iterator iterator(JMenu self)
public static Iterator iterator(JMenuBar self)
public static Iterator iterator(JPopupMenu self)
public static Iterator iterator(JTabbedPane self)
public static Container leftShift(Container self, Component c)
public static ButtonGroup leftShift(ButtonGroup self, AbstractButton b)
public static DefaultListModel leftShift(DefaultListModel self, Object e)
public static JComboBox leftShift(JComboBox self, Object i)
public static MutableComboBoxModel leftShift(MutableComboBoxModel self, Object i)
public static DefaultTableModel leftShift(DefaultTableModel self, Object row)
if row.size < model.size -> row will be padded with nulls
public static TableColumnModel leftShift(TableColumnModel self, TableColumn column)
public static TreePath leftShift(TreePath self, Object p)
WARNING: this operation returns a new TreePath, not the original one.
public static MutableTreeNode leftShift(MutableTreeNode self, MutableTreeNode node)
public static DefaultMutableTreeNode leftShift(DefaultMutableTreeNode self, DefaultMutableTreeNode node)
public static JMenu leftShift(JMenu self, Action action)
public static JMenu leftShift(JMenu self, Component component)
public static JMenu leftShift(JMenu self, JMenuItem item)
public static JMenu leftShift(JMenu self, String str)
public static JMenu leftShift(JMenu self, GString gstr)
public static JMenuBar leftShift(JMenuBar self, JMenu menu)
public static JPopupMenu leftShift(JPopupMenu self, Action action)
public static JPopupMenu leftShift(JPopupMenu self, Component component)
public static JPopupMenu leftShift(JPopupMenu self, JMenuItem item)
public static JPopupMenu leftShift(JPopupMenu self, String str)
public static JPopupMenu leftShift(JPopupMenu self, GString gstr)
public static JToolBar leftShift(JToolBar self, Action action)
public static void putAt(DefaultListModel self, int index, Object e)
WARNING: this operation does not replace the element at the specified index, rather it inserts the element at that index, thus increasing the size of of the model by 1.
public static void putAt(MutableComboBoxModel self, int index, Object i)
WARNING: this operation does not replace the item at the specified index, rather it inserts the item at that index, thus increasing the size of the model by 1.
public static void putAt(DefaultTableModel self, int index, Object row)
WARNING: this operation does not replace the item at the specified index, rather it inserts the item at that index, thus increasing the size of the model by 1.
if row.size < model.size -> row will be padded with nulls
public static void putAt(MutableTreeNode self, int index, MutableTreeNode node)
WARNING: this operation does not replace the node at the specified index, rather it inserts the node at that index, thus increasing the size of the treeNode by 1.
public static int size(Container self)
size()
method for Container
.
public static int size(ButtonGroup self)
size()
method for ButtonGroup
.
public static int size(ListModel self)
size()
method for ListModel
.
public static int size(JComboBox self)
size()
method for JComboBox
.
public static int size(TableModel self)
size()
method for TableModel
.
public static int size(TableColumnModel self)
size()
method for TableColumnModel
.
public static int size(TreePath self)
size()
method for TreePath
.
public static int size(TreeNode self)
size()
method for TreeNode
.
public static int size(JMenu self)
size()
method for JMenu
.
public static int size(JMenuBar self)
size()
method for JMenuBar
.
public static int size(JTabbedPane self)
size()
method for JTabbedPane
.
Copyright © 2003-2009 The Codehaus. All rights reserved.