|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
jview.AbstractDisplayable
jview.JSplittedDataDisplay
public class JSplittedDataDisplay
A splitted data display should always be used when two interlinked
JDataCanvas should be displayed. A splitted data display defines
a master data canvas that displays to the top or left, and a slave data
canvas to the bottom or right. If the user zooms in the master, the
slave zoom changes according to the KEY_TRANSFER.
| Nested Class Summary | |
|---|---|
static class |
JSplittedDataDisplay.Show
Test the splitted display. |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static boolean |
DEFCONTINUOUS
Default we want continuopus layout. |
private static String |
DEFLINKDELETE
Default we link delete actions. |
private static double |
DEFMASTERWEIGHT
Default weight 50:50. |
private static boolean |
DEFONETOUCH
Default we want one-touch expandable action. |
private static boolean |
DEFTOPBOTTOM
Default we synchronize in x, so deliver a top-bottom pane. |
static String |
KEY_CONTINUOUS
If true, we set continuous layout. |
static String |
KEY_LINKDELETE
If given, we linke deletes between the two canvas at those sets. |
static String |
KEY_MASTERCANVAS
The properties of the master canvas. |
static String |
KEY_MASTERWEIGHT
The master resize weight. |
static String |
KEY_ONETOUCH
If true, we show a quick enroll button. |
static String |
KEY_SLAVECANVAS
The properties of the slave canvas. |
static String |
KEY_TOPBOTTOM
If true, we deploy a top-bottom pane. |
static String |
KEY_TRANSFER
The class that joins the displays, if null, not joined. |
private JDataCanvas |
master
The master canvas, call getMasterCanvas() to draw into it. |
private Map<String,List<DataTransfer>> |
mastercache
If dels are linked, we store deletes in the master issued by slave. |
private JDataCanvas |
slave
The slave canvas, call getMasterCanvas() to draw into it. |
private Map<String,List<DataTransfer>> |
slavecache
If dels are linked, we store deletes in the slaves issued by master. |
private JSplitPane |
split
The split pane used to display master and slave canvas. |
| Fields inherited from class jview.AbstractDisplayable |
|---|
KEY_COMPONENTNAME, KEY_ICON, KEY_INSETS |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
JSplittedDataDisplay(Map<String,String> prop)
Creates a new splitted display. |
|
| Method Summary | |
|---|---|
private JDataCanvas |
createCanvas(String resource)
Creates a data canvas from a resource. |
void |
dataChanged(DataChangeEvent dce)
This method is called if one of the delete-linked sets cahnged. |
Collection<JDataCanvas> |
getComposingCanvases()
Returns the master and the slave canvas. |
JDataCanvas |
getMainCanvas()
Returns the master canvas. |
JDataCanvas |
getMasterCanvas()
Returns the empty master canvas. |
Component |
getRepresentation()
We return a newly instantiated splitted pane here. |
JDataCanvas |
getSlaveCanvas()
Returns the empty slave canvas. |
void |
init()
Initializes the two data canvas. |
private boolean |
joinZoom()
Tries to join the two data canvas together. |
| Methods inherited from class jview.AbstractDisplayable |
|---|
getComponentName, getIcon, getIcon |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
public static final String KEY_MASTERCANVAS
public static final String KEY_SLAVECANVAS
public static final String KEY_LINKDELETE
public static final String KEY_MASTERWEIGHT
public static final String KEY_TRANSFER
public static final String KEY_TOPBOTTOM
public static final String KEY_ONETOUCH
public static final String KEY_CONTINUOUS
private static final double DEFMASTERWEIGHT
private static final boolean DEFTOPBOTTOM
private static final boolean DEFONETOUCH
private static final boolean DEFCONTINUOUS
private static final String DEFLINKDELETE
private JDataCanvas master
getMasterCanvas() to draw into it.
private Map<String,List<DataTransfer>> mastercache
private JDataCanvas slave
getMasterCanvas() to draw into it.
private Map<String,List<DataTransfer>> slavecache
private JSplitPane split
| Constructor Detail |
|---|
public JSplittedDataDisplay(Map<String,String> prop)
KEY_MASTERCANVAS and
KEY_SLAVECANVAS must be set.
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class PropertyResourcespublic JDataCanvas getMainCanvas()
getMainCanvas in interface DataCanvasProvidingpublic Collection<JDataCanvas> getComposingCanvases()
getComposingCanvases in interface DataCanvasProvidingprivate boolean joinZoom()
public JDataCanvas getMasterCanvas()
public JDataCanvas getSlaveCanvas()
public void dataChanged(DataChangeEvent dce)
dataChanged in interface DataObserverpublic Component getRepresentation()
getRepresentation in interface Displayableprivate JDataCanvas createCanvas(String resource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||