|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.asset.AbstractSheet
public abstract class AbstractSheet
AbstractSheet like a spreadsheet, contains several assemblies.
| Field Summary | |
|---|---|
static int |
ADD_ASSEMBLY
Add assembly. |
static int |
ANNOTATION_ASSET
Annotation asset. |
static int |
ANNOTATION_LINE_ASSET
Annotation line asset. |
static int |
ANNOTATION_RECTANGLE_ASSET
Annotation rectangle asset. |
static int |
BIND_ASSEMBLY
Bind assembly. |
static int |
CALENDAR_ASSET
Calendar asset. |
static int |
CHART_ASSET
Chart asset. |
static int |
CHECKBOX_ASSET
Checkbox asset. |
static int |
COMBOBOX_ASSET
ComboBox asset. |
static int |
CONDITION_ASSET
Condition asset. |
static int |
CROSSTAB_ASSET
Crosstab asset. |
static int |
CUBE_ASSET
Cube asset. |
static int |
CURRENTSELECTION_ASSET
Group container asset. |
static int |
CYLINDER_ASSET
Cylinder asset. |
static int |
DATE_RANGE_ASSET
Date Condition asset. |
static int |
DRILL_BOX_ASSET
DrillBox asset. |
static int |
EMBEDDEDTABLE_VIEW_ASSET
Embedded table asset. |
static int |
FONT_FAMILY
Font family. |
static int |
FORMULA_TABLE_ASSET
Formula table asset. |
static int |
GAUGE_ASSET
Gauge asset. |
static int |
GROUPCONTAINER_ASSET
Group container asset. |
protected HashMap |
heights
|
static int |
IMAGE_ASSET
Image asset. |
static int |
LINE_ASSET
Line shape asset. |
protected static Dimension |
MIN_SIZE
|
static int |
NAMED_GROUP_ASSET
Named group asset. |
protected static int |
NO_MOVEMENT
|
static int |
OVAL_ASSET
Oval shape asset. |
protected static int |
PREF_COL
|
static int |
RADIOBUTTON_ASSET
RadioButton asset. |
static int |
RECTANGLE_ASSET
Rectangle shape asset. |
static int |
REMOVE_ASSEMBLY
Remove assembly. |
static int |
RENAME_ASSEMBLY
Rename assembly. |
static int |
SELECTION_LIST_ASSET
Selection list asset. |
static int |
SELECTION_TREE_ASSET
Selection tree asset. |
static int |
SHEET_DESIGN_MODE
Sheet design mode. |
static int |
SHEET_RUNTIME_MODE
Sheet runtime mode. |
static int |
SLIDER_ASSET
Slider asset. |
static int |
SLIDING_SCALE_ASSET
Sliding scale asset. |
static int |
SPINNER_ASSET
Spinner asset. |
static int |
SUBMIT_ASSET
Submit asset. |
static int |
TAB_ASSET
Tab asset. |
static int |
TABLE_ASSET
Table asset. |
static int |
TABLE_VIEW_ASSET
Table view asset. |
static int |
TEXT_ASSET
Text asset. |
static int |
TEXTINPUT_ASSET
TextInput asset. |
static int |
THERMOMETER_ASSET
Thermometer asset. |
static int |
TIME_SLIDER_ASSET
Time slider asset. |
static int |
UPLOAD_ASSET
Upload asset. |
static int |
USER_FORMAT
User format. |
static int |
VARIABLE_ASSET
Variable asset. |
static int |
VIEWSHEET_ASSET
Viewsheet asset. |
static int |
VIEWSHEET_SNAPSHOT_ASSET
Viewsheet snapshot asset. |
protected HashMap |
widths
|
protected static int |
X_MOVEMENT
|
protected static int |
Y_MOVEMENT
|
| Constructor Summary | |
|---|---|
AbstractSheet()
Create a sheet object. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener listener)
Add an action listener observes asset changes. |
abstract boolean |
addOuterDependency(AssetEntry entry)
Add an outer dependency. |
int |
addr()
Get the original hash code. |
abstract void |
checkDependencies()
Check if the dependency is valid. |
abstract void |
checkValidity()
Check if the sheet is valid. |
Object |
clone()
Clone the object. |
abstract boolean |
containsAssembly(String name)
Check if contains an assembly. |
void |
fireEvent(int type,
String cmd)
Fire event. |
protected Rectangle |
getActualBounds(Assembly assembly)
Get the pixel bounds of an embed viewsheet. |
abstract Assembly[] |
getAssemblies()
Get all the assemblies. |
abstract Assembly |
getAssembly(AssemblyEntry entry)
Get an assembly by its entry. |
abstract Assembly |
getAssembly(String name)
Get an assembly by its name. |
int |
getColWidth(int col)
Get the column width of a column. |
int |
getColX(int col)
Get the start point of a column. |
long |
getCreated()
Get created time. |
String |
getCreatedBy()
Get the created person. |
abstract AssemblyRef[] |
getDependeds(AssemblyEntry entry)
Get the assemblies depended on of an assembly in a sheet. |
abstract AssemblyRef[] |
getDependeds(AssemblyEntry entry,
boolean view,
boolean out)
Get the assemblies depended on of an assembly in a viewsheet. |
String |
getDescription()
Get the description of the worksheet. |
protected abstract int |
getGap()
Get the gap between two assemblies. |
long |
getLastModified()
Get last modified time. |
long |
getLastModified(boolean recursive)
Get last modified. |
String |
getLastModifiedBy()
Get last modified person. |
Dimension |
getLastSize()
Get last size of the sheet. |
protected Rectangle |
getLayoutBounds(Assembly assembly)
Get the layout bounds of an assembly. |
XQueryRepository |
getLocalQueryRepository()
Get the local query repository. |
abstract AssetEntry[] |
getOuterDependencies()
Get the outer dependencies. |
abstract AssetEntry[] |
getOuterDependents()
Get the outer dependents. |
int |
getRowHeight(int row)
Get the row height of a row. |
int |
getRowY(int row)
Get the start point of a row. |
abstract Dimension |
getSize()
Get the size of this sheet. |
abstract int |
getType()
Get the type of the sheet. |
boolean |
isFireEvent()
Check if fire event when fireEvent is called. |
protected boolean |
isLayoutVisible(Assembly assembly)
Check if is visible when layout. |
Assembly[] |
layout()
Layout the sheet. |
Assembly[] |
layout(boolean vonly)
Layout the sheet. |
Assembly[] |
layout(boolean vonly,
ArrayList arr)
Layout the sheet. |
protected int |
moveY(Assembly a,
Assembly b,
boolean vonly)
Move one assembly in y dimension. |
protected void |
parseWHXML(Element elem,
Map map)
Parse widths/heights xml. |
void |
removeActionListener(ActionListener listener)
Remove an action listener registered. |
void |
removeActionListeners()
Remove all the action listeners. |
abstract void |
removeOuterDependencies()
Remove all the outer dependencies. |
abstract boolean |
removeOuterDependency(AssetEntry entry)
Remove an outer dependency. |
abstract void |
renameOuterDependent(AssetEntry oentry,
AssetEntry nentry)
Rename an outer dependent. |
abstract void |
reset()
Reset the sheet. |
void |
resetSize()
Reset the size of the sheet. |
boolean |
setColWidth(int col,
int width)
Set the column width of a column. |
void |
setCreated(long created)
Set created time. |
void |
setCreatedBy(String createdBy)
Set the created person |
void |
setFireEvent(boolean event)
Set whether fire event when fireEvent is called. |
void |
setLastModified(long modified)
Set last modified time. |
void |
setLastModifiedBy(String modifiedBy)
Set last modified person. |
void |
setLastSize(Dimension lsize)
Set last size to the sheet. |
void |
setLocalQueryRepository(XQueryRepository rep)
Set the local query repository. |
boolean |
setRowHeight(int row,
int height)
Set the row height of a row. |
protected void |
shrink()
Shrink the sheet width/height settings if possible. |
abstract boolean |
update(AssetRepository rep,
AssetEntry entry,
Principal user)
Update this sheet. |
void |
writeData(JarOutputStream out)
Write out data content in each assembly. |
protected void |
writeWHXML(String name,
PrintWriter writer,
Map map)
Write widths/heights xml. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface inetsoft.util.XMLSerializable |
|---|
parseXML, writeXML |
| Field Detail |
|---|
public static final int SHEET_DESIGN_MODE
public static final int SHEET_RUNTIME_MODE
public static final int CONDITION_ASSET
public static final int NAMED_GROUP_ASSET
public static final int VARIABLE_ASSET
public static final int TABLE_ASSET
public static final int DATE_RANGE_ASSET
public static final int TABLE_VIEW_ASSET
public static final int CHART_ASSET
public static final int CROSSTAB_ASSET
public static final int FORMULA_TABLE_ASSET
public static final int CUBE_ASSET
public static final int SLIDER_ASSET
public static final int SPINNER_ASSET
public static final int CHECKBOX_ASSET
public static final int RADIOBUTTON_ASSET
public static final int COMBOBOX_ASSET
public static final int TEXT_ASSET
public static final int IMAGE_ASSET
public static final int GAUGE_ASSET
public static final int THERMOMETER_ASSET
public static final int SLIDING_SCALE_ASSET
public static final int CYLINDER_ASSET
public static final int SELECTION_LIST_ASSET
public static final int SELECTION_TREE_ASSET
public static final int TIME_SLIDER_ASSET
public static final int CALENDAR_ASSET
public static final int DRILL_BOX_ASSET
public static final int TAB_ASSET
public static final int EMBEDDEDTABLE_VIEW_ASSET
public static final int GROUPCONTAINER_ASSET
public static final int LINE_ASSET
public static final int RECTANGLE_ASSET
public static final int OVAL_ASSET
public static final int CURRENTSELECTION_ASSET
public static final int TEXTINPUT_ASSET
public static final int SUBMIT_ASSET
public static final int UPLOAD_ASSET
public static final int ANNOTATION_ASSET
public static final int ANNOTATION_LINE_ASSET
public static final int ANNOTATION_RECTANGLE_ASSET
public static final int VIEWSHEET_ASSET
public static final int VIEWSHEET_SNAPSHOT_ASSET
public static final int FONT_FAMILY
public static final int USER_FORMAT
public static final int ADD_ASSEMBLY
public static final int REMOVE_ASSEMBLY
public static final int RENAME_ASSEMBLY
public static final int BIND_ASSEMBLY
protected static final Dimension MIN_SIZE
protected static final int NO_MOVEMENT
protected static final int X_MOVEMENT
protected static final int Y_MOVEMENT
protected static final int PREF_COL
protected HashMap widths
protected HashMap heights
| Constructor Detail |
|---|
public AbstractSheet()
| Method Detail |
|---|
public abstract Dimension getSize()
public abstract boolean containsAssembly(String name)
name - the specified assembly name.
public abstract Assembly getAssembly(AssemblyEntry entry)
entry - the specified assembly entry.
public abstract Assembly getAssembly(String name)
name - the specified assembly name.
public abstract Assembly[] getAssemblies()
protected abstract int getGap()
public abstract AssetEntry[] getOuterDependents()
public abstract void renameOuterDependent(AssetEntry oentry,
AssetEntry nentry)
oentry - the specified old entry.nentry - the specified new entry.public abstract AssetEntry[] getOuterDependencies()
public abstract boolean addOuterDependency(AssetEntry entry)
entry - the specified entry.
public abstract boolean removeOuterDependency(AssetEntry entry)
entry - the specified entry.
public abstract void removeOuterDependencies()
public abstract boolean update(AssetRepository rep,
AssetEntry entry,
Principal user)
rep - the specified asset repository.entry - the specified entry stored in.user - the specified principal.
public abstract void checkValidity()
throws Exception
Exception
public abstract void checkDependencies()
throws InvalidDependencyException
InvalidDependencyExceptionpublic abstract int getType()
public abstract void reset()
public abstract AssemblyRef[] getDependeds(AssemblyEntry entry)
entry - the specified assembly entry.
public abstract AssemblyRef[] getDependeds(AssemblyEntry entry,
boolean view,
boolean out)
entry - the specified assembly entry.view - true to include view, false otherwise.out - out to include out, false otherwise.public void setLocalQueryRepository(XQueryRepository rep)
rep - the specified local query repository.public XQueryRepository getLocalQueryRepository()
public void setLastSize(Dimension lsize)
lsize - the specified last size.public Dimension getLastSize()
public int getRowHeight(int row)
row - the specified row.
public int getRowY(int row)
row - the specified row.
public boolean setRowHeight(int row,
int height)
row - the specified row.height - the specified height.
public int getColWidth(int col)
col - the specified column.
public boolean setColWidth(int col,
int width)
col - the specified column.width - the specified width.
public void resetSize()
public int getColX(int col)
col - the specified column.
public Assembly[] layout(boolean vonly,
ArrayList arr)
vonly - true if vertical movement only, false both directions are ok.arr - the assemblies need be layout.
protected void shrink()
protected Rectangle getActualBounds(Assembly assembly)
assembly - the specified assembly.
protected Rectangle getLayoutBounds(Assembly assembly)
assembly - the specified assembly.
protected boolean isLayoutVisible(Assembly assembly)
assembly - the specified assembly.
public Assembly[] layout()
public Assembly[] layout(boolean vonly)
vonly - true if vertical movement only, false both directions are ok.
protected int moveY(Assembly a,
Assembly b,
boolean vonly)
a - the specified assembly a.b - the specified assembly b to move.vonly - true if vertical movement only, false both directions are ok.
public void setLastModified(long modified)
modified - the specified last modified time.public long getLastModified()
public long getLastModified(boolean recursive)
public void setCreated(long created)
created - the specified created time.public long getCreated()
public void setLastModifiedBy(String modifiedBy)
modified - the specified last modified person.public String getLastModifiedBy()
public void setCreatedBy(String createdBy)
createdBy - the created person.public String getCreatedBy()
public void addActionListener(ActionListener listener)
public void removeActionListener(ActionListener listener)
public void removeActionListeners()
public boolean isFireEvent()
public void setFireEvent(boolean event)
event, - false if not to fire event to listeners.
public void fireEvent(int type,
String cmd)
type - the specified sheet type.cmd - the specified command.public void writeData(JarOutputStream out)
protected void writeWHXML(String name,
PrintWriter writer,
Map map)
name - the specified name.writer - the specified writer.map - the specified map.
protected void parseWHXML(Element elem,
Map map)
elem - the specified xml element.map - the specified map.public String getDescription()
public Object clone()
clone in interface AssetObjectclone in class Objectpublic int addr()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||