|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kleopatra.forms.view.builder.FormUtils
A bunch of static utility methods.
Constructor Summary | |
FormUtils()
|
Method Summary | |
static javax.swing.JFrame |
createFrame(Form form,
boolean defaultShow)
create a JFrame around the Form. |
static javax.swing.JFrame |
createFrame(Form form,
java.lang.String title,
boolean defaultShow)
create a JFrame around the Form. |
static javax.swing.JFrame |
createFrame(javax.swing.JComponent content,
java.lang.String title,
boolean defaultShow)
create a JFrame with content as contentPane, given title. |
static java.util.List |
installActions(java.util.List actionIDs,
java.lang.String resourceID,
java.lang.Object handler)
register actions and callback methods of handler with the ActionFactory, and customize their presentation attributes from the resource. |
static java.util.List |
installActions(java.lang.Object[] actionIDs,
java.lang.String resourceID,
java.lang.Object handler)
register actions and callback methods of handler with the ActionFactory, and customize their presentation attributes from the resource. |
static void |
locateOnScreenCenter(java.awt.Component component)
Locates the given component on the screen's center. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FormUtils()
Method Detail |
public static javax.swing.JFrame createFrame(Form form, boolean defaultShow)
pack and show if defaultShow is true. As a side-effect OptionPane's rootFrame is set to the frame.
public static javax.swing.JFrame createFrame(Form form, java.lang.String title, boolean defaultShow)
pack and show if defaultShow is true. As a side-effect OptionPane's rootFrame is set to the frame.
public static javax.swing.JFrame createFrame(javax.swing.JComponent content, java.lang.String title, boolean defaultShow)
pack and show if defaultShow is true. As a side-effect OptionPane's rootFrame is set to the frame.
content
- title
- defaultShow
-
public static void locateOnScreenCenter(java.awt.Component component)
component
- the component to be centeredpublic static java.util.List installActions(java.lang.Object[] actionIDs, java.lang.String resourceID, java.lang.Object handler)
actionIDs
- an array of actionIDsresourceID
- the name of the resourcehandler
- an object providing the callback methods
public static java.util.List installActions(java.util.List actionIDs, java.lang.String resourceID, java.lang.Object handler)
actionIDs
- a list of actionIDsresourceID
- the name of the resourcehandler
- an object providing the callback methods
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |