public class JAXXRuntime extends Object
| Constructor and Description |
|---|
JAXXRuntime() |
| Modifier and Type | Method and Description |
|---|---|
static char |
getFirstCharAt(String text,
char defaultValue)
Get the first char of a String, or return default value.
|
static <O> O |
getParent(Object top,
Class<O> clazz)
Find a parent of the given
top object using the container api to get up. |
static <O extends Container> |
getParentContainer(Object top,
Class<O> clazz)
Return parent's container corresponding to the Class clazz
|
static String |
getStringValue(Object value)
Compute the string representation of an object.
|
static void |
setComponentHeight(Component component,
int height)
Set the height of a given component.
|
static void |
setComponentWidth(Component component,
int width)
Set the width of the given component
|
static void |
setText(JTextComponent c,
String text) |
public static char getFirstCharAt(String text, char defaultValue)
text - the text to cutdefaultValue - default char value if text is null, or emptypublic static <O extends Container> O getParentContainer(Object top, Class<O> clazz)
O - type of container to obtain from contexttop - the top containerclazz - desiredpublic static <O> O getParent(Object top, Class<O> clazz)
top object using the container api to get up.
Stop on parent when it is of the givenclazz type.O - type of container to obtain from contexttop - the top containerclazz - desiredpublic static void setComponentWidth(Component component, int width)
component - the component to resizewidth - the new width to applypublic static void setComponentHeight(Component component, int height)
component - the component to resizeheight - the new height to applypublic static void setText(JTextComponent c, String text)
Copyright © 2008–2015 CodeLutin. All rights reserved.