public class ViewHelper extends Object
Constructor and Description |
---|
ViewHelper() |
Modifier and Type | Method and Description |
---|---|
static Component |
createDetailButton(Form def)
Create a standard detail button for a DesignDefinition.
|
static Window |
getWindowForComponent(Component parentComponent)
Utility method to get the parent window for a component.
|
static String |
padLabel(String title)
Pad the lable of a field.
|
public static Component createDetailButton(Form def)
def
- The DesignDefinition.public static String padLabel(String title)
title
- The text.public static Window getWindowForComponent(Component parentComponent) throws HeadlessException
parentComponent
- The component who's window were finding.HeadlessException
- If the component has no window.