|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.dock.util.GuiCommon
Docking framework.
| Method Summary | |
static java.lang.String |
abbreviatedString(java.lang.String s,
int n)
Abbreviates a string to n characters. |
static boolean |
attemptLookAndFeel(java.lang.String klassname)
Tries to set the given look and feel. |
static void |
centerToParent(java.awt.Component c,
java.awt.Component parent)
Centers to parent. |
static void |
centerToScreen(java.awt.Component c)
Centers to screen. |
static void |
configureDisposeOnEscape(javax.swing.JDialog dialog)
Configures dispose on escape press. |
static void |
configureDisposeOnEscape(javax.swing.JFrame frame)
Configures dispose on escape press. |
static void |
expandAll(javax.swing.JTree tree,
boolean expand)
Expands all nodes in a JTree. |
static void |
expandAll(javax.swing.JTree tree,
javax.swing.tree.TreePath parent,
boolean expand)
Expands all nodes in a JTree. |
static java.awt.Component[] |
findChildrenOfClass(java.awt.Container c,
java.lang.Class clazz)
Finds children assignable to the given class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final void centerToParent(java.awt.Component c,
java.awt.Component parent)
c - the Component to center.parent - the parent.public static final void centerToScreen(java.awt.Component c)
c - the Component to center.public static final void configureDisposeOnEscape(javax.swing.JDialog dialog)
dialog - the dialog to configure.public static final void configureDisposeOnEscape(javax.swing.JFrame frame)
frame - the frame to configure.
public static final java.awt.Component[] findChildrenOfClass(java.awt.Container c,
java.lang.Class clazz)
c - the root of the search.clazz - the clazz that must be assignable to.
public static final void expandAll(javax.swing.JTree tree,
boolean expand)
JTree.
tree - the tree to expandexpand - whether to expand or collapse.
public static final void expandAll(javax.swing.JTree tree,
javax.swing.tree.TreePath parent,
boolean expand)
JTree.
tree - the tree to expandparent - current search root.expand - whether to expand or collapse.
public static final java.lang.String abbreviatedString(java.lang.String s,
int n)
s - the string to abbreviate.n - the number of characters.
public static boolean attemptLookAndFeel(java.lang.String klassname)
klassname - LnF classname.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||