|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.editor.visualizer.ModelVisualizerFactory
public class ModelVisualizerFactory
| Constructor Summary | |
|---|---|
ModelVisualizerFactory()
|
|
| Method Summary | |
|---|---|
static javax.swing.ImageIcon |
getIcon(DataModel model)
Gets the icon for the given model node type. |
static javax.swing.ImageIcon |
getIcon(java.lang.String dataName)
Returns the icon for the visualiser |
static javax.swing.ImageIcon |
getLoadingIcon()
Gets the data visualiser icon representation of the node "getting value.." |
static javax.swing.ImageIcon |
getPojCollectionIcon()
Gets the data visualiser icon representation of the pojo collection property |
static javax.swing.ImageIcon |
getPojIteratorIcon()
Gets the data visualiser icon representation of the pojo collection iterator. |
static javax.swing.ImageIcon |
getPojMethodArgumentIcon()
Gets the data visualiser icon representation of the signel argument of the pojo method. |
static javax.swing.ImageIcon |
getPojMethodArgumentsIcon()
Gets the data visualiser icon representation of the arguments of the pojo method. |
static javax.swing.ImageIcon |
getPojoPropertyIcon()
Gets the data visualiser icon representation of the pojo property. |
static javax.swing.ImageIcon |
getPojTransientPropertyIcon()
Gets the data visualiser icon representation of the pojo transient property |
static java.awt.Component |
getVisualizer(DataModel node,
ModelVisualiserPanel panel)
Returns the visualizer for the model node |
static boolean |
isDbFieldModel(DataModel model)
Determines whether the model is database row
model node. |
static boolean |
isDbRowModel(DataModel model)
Determines whether the model is database row
model node. |
static boolean |
isDbTableModel(DataModel model)
Determines whether the model is database table
model node. |
static boolean |
isLoading(DataModel model)
|
static boolean |
isPojoCollectionProperty(DataModel model)
Indicates whether the specified model node is wrapping a collection object (as the pojo property) |
static boolean |
isPojoIterator(DataModel model)
Gets whether the specified model node represents a pojo iterator. |
static boolean |
isPojoMethodArgument(DataModel model)
Gets whether the specified model node represents one single argument of the pojo method. |
static boolean |
isPojoMethodArguments(DataModel model)
Gets whether the specified model node represents arguments of the pojo method. |
static boolean |
isPojoModel(DataModel model)
Determines whether model is POJO model node. |
static boolean |
isPojoProperty(DataModel model)
Gets whehter the specified model node represents a pojo property. |
static boolean |
isPojoTransientProperty(DataModel model)
Gets whether the specified model node represents a transient pojo property. |
static boolean |
isStaticListModel(DataModel model)
|
static boolean |
isStaticTableModel(DataModel model)
Determines whether model is static table
model node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelVisualizerFactory()
| Method Detail |
|---|
public static boolean isDbTableModel(DataModel model)
model is database table
model node.
model - the DataModel that is being checked
true if the model is DatabaseTableModel or
runtime wrapper for DatabaseTableModel, false otherwisepublic static boolean isDbRowModel(DataModel model)
model is database row
model node.
model - the DataModel that is being checked
true if the model is DatabaseRowModel or
runtime wrapper for DatabaseRowModel, false otherwisepublic static boolean isDbFieldModel(DataModel model)
model is database row
model node.
model - the DataModel that is being checked
true if the model is DatabaseFieldModel or
runtime wrapper for DatabaseFieldModel, false otherwisepublic static boolean isStaticTableModel(DataModel model)
model is static table
model node
model - the DataModel node to be checked
public static boolean isStaticListModel(DataModel model)
public static boolean isPojoModel(DataModel model)
model is POJO model node.
model - the DataModel node to be checked
public static boolean isPojoCollectionProperty(DataModel model)
public static boolean isPojoProperty(DataModel model)
public static boolean isPojoTransientProperty(DataModel model)
public static boolean isPojoIterator(DataModel model)
public static boolean isLoading(DataModel model)
public static boolean isPojoMethodArgument(DataModel model)
public static boolean isPojoMethodArguments(DataModel model)
public static javax.swing.ImageIcon getLoadingIcon()
public static javax.swing.ImageIcon getPojoPropertyIcon()
public static javax.swing.ImageIcon getPojTransientPropertyIcon()
public static javax.swing.ImageIcon getPojCollectionIcon()
public static javax.swing.ImageIcon getPojIteratorIcon()
public static javax.swing.ImageIcon getPojMethodArgumentIcon()
public static javax.swing.ImageIcon getPojMethodArgumentsIcon()
public static java.awt.Component getVisualizer(DataModel node,
ModelVisualiserPanel panel)
node - the DataModel nodepanel - panel that will contain returned component.
JPanel if the node's type is
not known.public static javax.swing.ImageIcon getIcon(DataModel model)
model - the model node whose icon representation
is to be returned
public static javax.swing.ImageIcon getIcon(java.lang.String dataName)
dataName - the path of the model node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||