public class StructureEditorChip extends AbstractChip
| Modifier and Type | Field and Description |
|---|---|
static String |
RESET |
static String |
SAVE_ERROR_MESSAGE |
static String |
STRUCTURE_LOAD_ERROR_MESSAGE |
static int |
TAB_SIZE |
static String |
TEXT |
static String |
UPLOADEDITOR |
static String |
UPLOADFILE |
static String |
VALIDATE |
static String |
VALIDATION_ERROR_MESSAGE |
static String |
VALIDATION_SUCCESS_MESSAGE |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
StructureEditorChip(DisplayState displayState,
Chip parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfirmXSDMessage()
Returns a (localized) message if either the xsd url is not set or this url is not reachable/empty.
|
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getStructure()
Returns structure the chip currently holds.
|
String |
getStructureQuoted()
Returns structure the chip currently holds, but with encoded HTML entities.
|
String |
getTitle()
Returns title of this chip.
|
static boolean |
isUsingDBForStructure()
Returns true if the hmc is configured to load the hmc.xml from the database.
|
void |
loadStructure()
Loads structure from the database and stores it in the chip.
|
boolean |
loadStructureFromFile()
Loads structure from hmc.xml and stores it in this chip.
|
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
void |
saveStructure()
Saves current structure in the database.
|
void |
setStructure(String structure)
Sets structure the chip will be holding.
|
boolean |
validateStructure(boolean saving)
Validates the current structure without saving or changing anything.
|
addEventListener, checkValid, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refresh, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String UPLOADEDITOR
public static final String VALIDATE
public static final String RESET
public static final String UPLOADFILE
public static final String TEXT
public static final String SAVE_ERROR_MESSAGE
public static final String VALIDATION_ERROR_MESSAGE
public static final String VALIDATION_SUCCESS_MESSAGE
public static final String STRUCTURE_LOAD_ERROR_MESSAGE
public static final int TAB_SIZE
public StructureEditorChip(DisplayState displayState, Chip parent)
public void processEvents(Map events)
Chippublic String getJSPURI()
Chippublic String getStructure()
setStructure() or
loadStructure().
setStructure(String) loadStructure()Stringpublic String getStructureQuoted()
getStructure()Stringpublic boolean loadStructureFromFile()
public void setStructure(String structure)
saveStructure()).structure - the structure
saveStructure()public void saveStructure()
public boolean validateStructure(boolean saving)
public void loadStructure()
getStructure().
getStructure()public String getTitle()
public static boolean isUsingDBForStructure()
public String getConfirmXSDMessage()
Copyright © 2017 SAP SE. All Rights Reserved.