com.jaxfront.core.ui
Class ClipBoard

java.lang.Object
  extended by com.jaxfront.core.ui.ClipBoard

public class ClipBoard
extends java.lang.Object

The clip board holds a type reference to be pasted into any context at later state.

Version:
1.60

Constructor Summary
ClipBoard()
           
 
Method Summary
 boolean canPaste(Type type)
           
 boolean canPaste(Type type, boolean bruteforce)
           
 boolean canPasteInTypeHirachie(CopyTypeWrapper wrapper, Type type)
           
 boolean canPasteInXuiEditor(Type type, boolean bruteforce)
           
 void copy(Type type)
          Putting a type to the clibBoard for further pastes.
 void copy(Type type, java.lang.String xml)
           
 void copyAsObject(Type type, java.lang.String xml)
           
 void doPaste(CopyTypeWrapper wrapper, Type type, boolean releaseVisualizer)
           
 void doPaste(Type target, java.lang.String serToBind, java.lang.String oldValue, boolean releaseVisualizer)
           
 void doPaste(Type target, java.lang.String serToBind, java.lang.String oldValue, boolean releaseVisualizer, boolean isAdding)
           
 void doPasteInXUIEditor(Type target, java.lang.String serToBind, java.lang.String oldValue, boolean releaseVisualizer, boolean isAdding)
           
 CopyTypeWrapper getCopyTypeWrapper()
           
 Type getViewHolderType(Type smartType)
          Retrieves the right viewHolder (container) for the given type.
 void handleStyleNLS(Type sourceType, Type targetType, java.lang.String sourceXPath, java.lang.String targetXPath, NLS nls)
           
 boolean paste(CopyTypeWrapper wrapper, Type type, NLS nls, boolean bruteforce, boolean releaseVisualizers)
          Paste the content of a type to another type.
 boolean paste(Type type)
          Paste the content of a type to another type.
 boolean paste(Type type, boolean bruteforce)
          Paste the content of a type to another type.
 boolean paste(Type type, NLS nls, boolean bruteforce)
           
 boolean paste(Type type, NLS nls, boolean bruteforce, boolean releaseVisualizers)
          Paste the content of a type to another type.
 void pasteNLS(CopyTypeWrapper wrapper, Type targetType, NLS nls)
           
 void release()
           
static void removeNotWantedTypeProperties(Type type)
           
static java.lang.String serializeWithEmpty(Type type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipBoard

public ClipBoard()
Method Detail

copy

public void copy(Type type)
Putting a type to the clibBoard for further pastes.

Parameters:
type - type to copy

copyAsObject

public void copyAsObject(Type type,
                         java.lang.String xml)

copy

public void copy(Type type,
                 java.lang.String xml)

paste

public boolean paste(Type type)
Paste the content of a type to another type. Check if both types are of the same schema type or schema element.

Parameters:
type - type to paste

paste

public boolean paste(Type type,
                     boolean bruteforce)
Paste the content of a type to another type. Check if both types are of the same schema type or schema element.

Parameters:
type - type to paste

paste

public boolean paste(Type type,
                     NLS nls,
                     boolean bruteforce)

paste

public boolean paste(Type type,
                     NLS nls,
                     boolean bruteforce,
                     boolean releaseVisualizers)
Paste the content of a type to another type. Check if both types are of the same schema type or schema element.

Parameters:
type - type to paste

paste

public boolean paste(CopyTypeWrapper wrapper,
                     Type type,
                     NLS nls,
                     boolean bruteforce,
                     boolean releaseVisualizers)
Paste the content of a type to another type. Check if both types are of the same schema type or schema element.

Parameters:
type - type to paste

doPaste

public void doPaste(CopyTypeWrapper wrapper,
                    Type type,
                    boolean releaseVisualizer)

doPaste

public void doPaste(Type target,
                    java.lang.String serToBind,
                    java.lang.String oldValue,
                    boolean releaseVisualizer)

doPaste

public void doPaste(Type target,
                    java.lang.String serToBind,
                    java.lang.String oldValue,
                    boolean releaseVisualizer,
                    boolean isAdding)

doPasteInXUIEditor

public void doPasteInXUIEditor(Type target,
                               java.lang.String serToBind,
                               java.lang.String oldValue,
                               boolean releaseVisualizer,
                               boolean isAdding)

removeNotWantedTypeProperties

public static void removeNotWantedTypeProperties(Type type)

pasteNLS

public void pasteNLS(CopyTypeWrapper wrapper,
                     Type targetType,
                     NLS nls)

handleStyleNLS

public void handleStyleNLS(Type sourceType,
                           Type targetType,
                           java.lang.String sourceXPath,
                           java.lang.String targetXPath,
                           NLS nls)

canPaste

public boolean canPaste(Type type)

canPasteInXuiEditor

public boolean canPasteInXuiEditor(Type type,
                                   boolean bruteforce)

canPaste

public boolean canPaste(Type type,
                        boolean bruteforce)

canPasteInTypeHirachie

public boolean canPasteInTypeHirachie(CopyTypeWrapper wrapper,
                                      Type type)

release

public void release()

getCopyTypeWrapper

public CopyTypeWrapper getCopyTypeWrapper()

getViewHolderType

public Type getViewHolderType(Type smartType)
Retrieves the right viewHolder (container) for the given type.

Parameters:
smartType - a given type
Returns:
a JComponent

serializeWithEmpty

public static java.lang.String serializeWithEmpty(Type type)