| java.lang.Object com.xoetrope.swing.table.XTableModelHelper
XTableModelHelper | public class XTableModelHelper (Code) | | Title:
Description:
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.3 $
|
Method Summary | |
public static double | addModels(XModel model1, XModel model2) | public static XModel | clone(XModel src) Clones the current model node. | public static String | getAttrib(XModel model, String name) | public static boolean | getBooleanValue(XBaseModel model) | public static double | getDoubleValue(XModel model) | public static double | getDoubleValue(XBaseModel model, String att) | public static double | getDoubleValue(XBaseModel model, String att, double defaultValue) | public static XTableModelHelper | getInstance() | public static int | getIntValue(XModel model) | public static int | getIntValue(XBaseModel model, String att) | public static int | getIntValue(XBaseModel model, String att, int defaultValue) | public static XBaseModel | getParent(XBaseModel model, int level) | public static int | getPositionInModel(XBaseModel refmodel) | public static String | getTempVar(String name) | public static String | getValue(Object model) | public static boolean | isChildNode(XBaseModel ref, XBaseModel parent) | public static void | merge(XModel mainModel, XModel newModel) merge the conents of one model with another. | public static double | multipyAttribs(XBaseModel model, String attrib1, String attrib2) | public static double | multipyModels(XModel model1, XModel model2) | public static void | setAttrib(XModel model, String name, String value) | public static void | setTempVar(String name, String value) |
addModels | public static double addModels(XModel model1, XModel model2)(Code) | | |
clone | public static XModel clone(XModel src)(Code) | | Clones the current model node. Need to call cloneChildren which iterated
the children and creates new instances of the children. The call to
super.clone() does not create new instance of the child nodes.
the newly created XModel. |
getBooleanValue | public static boolean getBooleanValue(XBaseModel model)(Code) | | |
getDoubleValue | public static double getDoubleValue(XModel model)(Code) | | |
getDoubleValue | public static double getDoubleValue(XBaseModel model, String att)(Code) | | |
getDoubleValue | public static double getDoubleValue(XBaseModel model, String att, double defaultValue)(Code) | | |
getIntValue | public static int getIntValue(XModel model)(Code) | | |
getIntValue | public static int getIntValue(XBaseModel model, String att)(Code) | | |
getIntValue | public static int getIntValue(XBaseModel model, String att, int defaultValue)(Code) | | |
getParent | public static XBaseModel getParent(XBaseModel model, int level)(Code) | | |
getPositionInModel | public static int getPositionInModel(XBaseModel refmodel)(Code) | | |
isChildNode | public static boolean isChildNode(XBaseModel ref, XBaseModel parent)(Code) | | |
merge | public static void merge(XModel mainModel, XModel newModel)(Code) | | merge the conents of one model with another. Calls cloneChildren which
transfers the data.
Parameters: mainModel - the model which is to be updated Parameters: newmodel - the model which contains the data to be merged with this model. |
multipyAttribs | public static double multipyAttribs(XBaseModel model, String attrib1, String attrib2)(Code) | | |
multipyModels | public static double multipyModels(XModel model1, XModel model2)(Code) | | |
|
|