|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.admin.UserInterface
public class UserInterface
This class is used by miadmin to obtain the class name and other properties of the component responsible for viewing/editing a configuration object. When a configuration object is about to be opened, miadmin calls the getUserInterfaceFor() method passing the configuration object. This class will then consult the ui.properties resource for a keyword that is either the configuration object's class name or one of its implemented interface names. The resulting value (or the class name) is then expected to have a number of properties defined for it:
| Field Summary | |
|---|---|
static String |
UI_CLASS
Key property name for Class |
static String |
UI_FONT
Key property name for Font |
static String |
UI_SMALL_ICON
Key property name for Icon |
static String |
UI_TITLE
Key property name for Title |
static String |
UI_TYPE
Key property name for Type |
| Constructor Summary | |
|---|---|
UserInterface()
Constructor for the UserInterface object |
|
UserInterface(String implClass,
String implType,
Icon implIcon,
String title,
Font font)
Constructor for the UserInterface object |
|
| Method Summary | |
|---|---|
static void |
checkConfigParams(UserInterface ui,
String name,
String leaf,
Object config)
Checks the config object's parameters for further expansion of parameters. |
String |
getClassName()
Gets the className attribute of the UserInterface object |
Font |
getFont()
Gets the font attribute of the UserInterface object |
static Font |
getFontFor(String name,
String leaf)
Gets the fontFor attribute of the UserInterface class |
static Icon |
getIconFor(String name,
String leaf)
Gets the iconFor attribute of the UserInterface class |
Object |
getProperty(Object key)
Gets the property attribute of the UserInterface object |
Icon |
getSmallIcon()
Gets the smallIcon attribute of the UserInterface object |
static String |
getStringFor(String name,
String leaf,
String key)
Returns the string for a given key. |
String |
getTitle()
Gets the title attribute of the UserInterface object |
String |
getType()
Gets the type attribute of the UserInterface object |
static UserInterface |
getUserInterfaceFor(String name,
Object config)
This method resolves the configuration object into a UI component that will handle visual display of the object. |
void |
setProperty(Object key,
Object value)
Sets the property attribute of the UserInterface object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String UI_CLASS
public static final String UI_TYPE
public static final String UI_SMALL_ICON
public static final String UI_TITLE
public static final String UI_FONT
| Constructor Detail |
|---|
public UserInterface()
public UserInterface(String implClass,
String implType,
Icon implIcon,
String title,
Font font)
implClass - specifies Class nameimplType - specifies implementation TypeimplIcon - specifies Icon to be used with this user interfacetitle - specifies titlefont - specifies font| Method Detail |
|---|
public static UserInterface getUserInterfaceFor(String name,
Object config)
name - specifies name for this user interfaceconfig - specifies configuration object
public static void checkConfigParams(UserInterface ui,
String name,
String leaf,
Object config)
public static String getStringFor(String name,
String leaf,
String key)
name - specifies name to be used with this keyleaf - specifies leaf to be used with this keykey - specifies key
public static Icon getIconFor(String name,
String leaf)
name - specifies name for iconleaf - specifies leaf for icon
public static Font getFontFor(String name,
String leaf)
name - specifies name for fontleaf - specifies leaf for font
public void setProperty(Object key,
Object value)
key - The new property valuevalue - The new property valuepublic String getClassName()
public String getType()
public Icon getSmallIcon()
public String getTitle()
public Font getFont()
public Object getProperty(Object key)
key - specifies key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||