public final class ModelerUtil extends Object
| Constructor and Description |
|---|
ModelerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ImageIcon |
buildIcon(String path)
Returns an icon, building it from an image file located at the shared resources
folder for the modeler.
|
static void |
centerWindow(Window parent,
Window child)
Center a window on a parent window
|
static Collection<String> |
getDbAttributeNames(ProjectController mediator,
DbEntity entity)
Returns array of db attribute names for DbEntity mapped to current ObjEntity.
|
static DataNodeDescriptor |
getNodeLinkedToMap(DataChannelDescriptor domain,
DataMap map) |
static String |
getObjectName(Object object)
Returns the "name" property of the object.
|
static String |
getProperty(String key)
Retrieves strings from .properties file
|
static String[] |
getRegisteredTypeNames() |
static void |
updateActions(int numSelected,
Class<? extends Action>... actions)
Updates MultipleObjectActions' state, depending on number of selected objects
(attributes, rel etc.)
|
public static String getObjectName(Object object)
public static ImageIcon buildIcon(String path)
public static Collection<String> getDbAttributeNames(ProjectController mediator, DbEntity entity)
public static String[] getRegisteredTypeNames()
public static DataNodeDescriptor getNodeLinkedToMap(DataChannelDescriptor domain, DataMap map)
public static void updateActions(int numSelected,
Class<? extends Action>... actions)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.