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