public class M3TAFormApiPublisher
extends java.lang.Object
window.MBAPI.mf
window.MBAPI.mf.displayM3TAForm(theCallback, theForms, theOpenCallback, theHidePositive, theHideNegative, thePositiveText, theNegativeText, theHeaderText)
for example)Constructor and Description |
---|
M3TAFormApiPublisher() |
Modifier and Type | Method and Description |
---|---|
private static void |
addM3TAForm(NativeM3TAForm theM3TAForm)
Intended for internal use.
|
private static void |
createM3TAForm(DefaultCallback theSaveCallback,
com.google.gwt.dom.client.Element theElement,
java.lang.String theForms,
int theWidth,
int theHeight,
com.google.gwt.core.client.JavaScriptObject theOpenCallback)
Creates a M3TAForm panel to be placed in the passed in element
|
private static void |
displayM3TAForm(DefaultCallback theCallback,
java.lang.String theForms,
com.google.gwt.core.client.JavaScriptObject theOpenCallback,
boolean theHidePositive,
boolean theHideNegative,
java.lang.String thePositiveText,
java.lang.String theNegativeText,
java.lang.String theHeaderText)
Display a dialog with m3taforms in it for collection data for a js function
|
private static void |
getDictionarySuggestions(int theDictionaryId,
java.lang.String theQuery,
int theOffset,
int thePageSize,
<any> theCallback)
Get a list of suggestions from a dictionary
|
private static void |
getInternalDictionarySuggestion(int theDictionaryId,
java.lang.String theQuery,
int theOffset,
int thePageSize,
com.google.gwt.core.client.JavaScriptObject theCallback) |
private static com.google.gwt.core.client.JsArray |
getJSArray()
Intended for internal use.
|
private static void |
getM3TAForm(java.lang.String theM3TAFormInstanceId)
Intended for internal use.
|
private static void |
removeM3TAForm(java.lang.String theM3TAFormInstanceId)
Intended for internal use.
|
private static void |
setupAPI()
Initialize the message API namespace object.
|
static void |
setupJavascriptAPIs()
Setup the M3TAForm javascript API.
|
private static void |
showAssetM3TAFormDialog(int theAssetId,
java.lang.String theForm,
java.lang.String theHeaderText,
java.lang.String theSaveButtonText)
Display a dialog with a metaform in it, correlated to a single asset
|
private static com.google.gwt.core.client.JavaScriptObject |
transformWordSuggestion(WordSuggestion theWord)
Intended for internal use.
|
private static com.google.gwt.core.client.JsArray |
transformWordSuggestions(java.util.List<WordSuggestion> theArray) |
public static void setupJavascriptAPIs()
private static void setupAPI()
private static void getInternalDictionarySuggestion(int theDictionaryId, java.lang.String theQuery, int theOffset, int thePageSize, com.google.gwt.core.client.JavaScriptObject theCallback)
private static com.google.gwt.core.client.JsArray transformWordSuggestions(java.util.List<WordSuggestion> theArray)
private static final com.google.gwt.core.client.JsArray getJSArray()
private static com.google.gwt.core.client.JavaScriptObject transformWordSuggestion(WordSuggestion theWord)
private static void getDictionarySuggestions(int theDictionaryId, java.lang.String theQuery, int theOffset, int thePageSize, <any> theCallback)
theDictionaryId
- the id of the dictionarytheQuery
- the query (e.g. doc* would return document, document:pdf, etc)theOffset
- number to offset (page number * page size)thePageSize
- size of pagetheCallback
- function to return list of WordSuggestion objects to.private static void displayM3TAForm(DefaultCallback theCallback, java.lang.String theForms, com.google.gwt.core.client.JavaScriptObject theOpenCallback, boolean theHidePositive, boolean theHideNegative, java.lang.String thePositiveText, java.lang.String theNegativeText, java.lang.String theHeaderText)
theCallback
- function to call back with a Javascript object of field values, keyed by field idstheForms
- comma separated list of m3taforms to displaytheOpenCallback
- the action to take when the panel is loaded and ready, argument is the panel itselftheHidePositive
- is hide positive button? (optional)theHideNegative
- is hide negative button? (optional)thePositiveText
- the positive button text (optional)theNegativeText
- the negative button text (optional)theHeaderText
- the text to display in the header (optional)private static void createM3TAForm(DefaultCallback theSaveCallback, com.google.gwt.dom.client.Element theElement, java.lang.String theForms, int theWidth, int theHeight, com.google.gwt.core.client.JavaScriptObject theOpenCallback)
theForms
- the forms to create the panel fortheSaveCallback
- function to call back with a Javascript object of field values, keyed by field idstheElement
- the element to replace with the paneltheWidth
- width percenttheHeight
- the height in pxtheOpenCallback
- the action to take when the panel is loaded and ready, argument is the panel itselfprivate static void addM3TAForm(NativeM3TAForm theM3TAForm)
theM3TAForm
- The M3TAForm to add.private static void getM3TAForm(java.lang.String theM3TAFormInstanceId)
theM3TAFormInstanceId
- The instance id of the M3TAForm to get.private static void removeM3TAForm(java.lang.String theM3TAFormInstanceId)
theM3TAFormInstanceId
- The instance id of the M3TAForm to remove.private static void showAssetM3TAFormDialog(int theAssetId, java.lang.String theForm, java.lang.String theHeaderText, java.lang.String theSaveButtonText)
theAssetId
- the asset id to edittheForm
- the form to displaytheHeaderText
- the text to display in the header (optional, will default to "Update Asset's Metadata")theSaveButtonText
- the text to display in the save button (optional, will default to "Update")Copyright © 2017 MediaBeacon, Inc. All Rights Reserved.