name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_ApplicationConfiguration_getRootElement_rdh | /**
* Get the root element instance used for this application.
*
* @return registered root element
* @since 8.4
*/
public Element getRootElement() {
return rootElement;
} | 3.26 |
framework_ApplicationConfiguration_getContextRootUrl_rdh | /**
* Gets the URL to the context root of the web application.
*
* @return the URL to the server-side context root as a string
* @since 8.0.3
*/
public String getContextRootUrl() {
return contextRootUrl;
}
/**
*
* @return the theme name used when initializing the application
* @deprecated as of 7.3. Use {@link... | 3.26 |
framework_ApplicationConfiguration_getAtmosphereVersion_rdh | /**
* Return Atmosphere version.
*
* @since 7.4
* @return Atmosphere version.
*/
public String getAtmosphereVersion() {
return getJsoConfiguration(id).getAtmosphereVersion();
} | 3.26 |
framework_ApplicationConfiguration_runWhenDependenciesLoaded_rdh | /**
* Runs the given command when all pending dependencies have been loaded, or
* immediately if no dependencies are being loaded.
*
* @since 7.6
* @param command
* the command to run
*/
public static void runWhenDependenciesLoaded(Command command) {
if (dependenciesLoading == 0) {
command.execute();
} else {
... | 3.26 |
framework_ApplicationConfiguration_getVaadinDirUrl_rdh | /**
* Gets the URL of the VAADIN directory on the server.
*
* @return the URL of the VAADIN directory
*/
public String getVaadinDirUrl() {
return vaadinDirUrl;
} | 3.26 |
framework_ApplicationConfiguration_loadFromDOM_rdh | /**
* Reads the configuration values defined by the bootstrap javascript.
*/
private void loadFromDOM() {
JsoConfiguration jsoConfiguration = getJsoConfiguration(id);
serviceUrl = jsoConfiguration.getConfigString(ApplicationConstants.SERVICE_URL);
if ((serviceUrl == null) || serviceUrl.isEmpty()) {
/* Use the current... | 3.26 |
framework_ApplicationConfiguration_getUIId_rdh | /**
* Gets the UI id of the server-side UI associated with this client-side
* instance. The UI id should be included in every request originating from
* this instance in order to associate the request with the right UI
* instance on the server.
*
* @return the UI id
*/
public int getUIId() {return uiId;
} | 3.26 |
framework_ApplicationConfiguration_isDebugMode_rdh | /**
* Checks if client side is in debug mode. Practically this is invoked by
* adding ?debug parameter to URI. Please note that debug mode is always
* disabled if production mode is enabled, but disabling production mode
* does not automatically enable debug mode.
*
* @see #isProductionMode()
* @return true if c... | 3.26 |
framework_DataBoundTransferable_getSourceContainer_rdh | /**
* Returns the container data source from which the transfer occurs.
*
* {@link Container.Viewer#getContainerDataSource()} is used to obtain the
* underlying container of the source component.
*
* @return Container
*/
public Container getSourceContainer() {
Component sourceComponent = getSourceComponent()... | 3.26 |
framework_VerticalLayout_addComponentsAndExpand_rdh | /**
* Adds the given components to this layout and sets them as expanded. The
* height of all added child components are set to 100% so that the
* expansion will be effective. The height of this layout is also set to
* 100% if it is currently undefined.
* <p>
* The components are added in the provided order to th... | 3.26 |
framework_JsonCodec_encodeConnectorMap_rdh | /* Encodes a connector map. Invisible connectors are skipped. */
@SuppressWarnings("deprecation")
private static JsonObject encodeConnectorMap(Type valueType, Map<?, ?> map, ConnectorTracker connectorTracker) {
JsonObject jsonMap = Json.createObject();
for (Entry<?, ?> entry : map.entrySet()) {
Client... | 3.26 |
framework_JsonCodec_encodeObject_rdh | /* Loops through the fields of value and encodes them. */
private static EncodeResult encodeObject(Object value, Class<?> valueType, JsonObject referenceValue, ConnectorTracker connectorTracker) {
JsonObject encoded = Json.createObject();
... | 3.26 |
framework_JsonCodec_decodeParametrizedType_rdh | /**
*
* @param targetType
* @param restrictToInternalTypes
* @param typeIndex
* The index of a generic type to use to define the child type
* that should be decoded
* @param connectorTracker
* @param value
* @return */
private static Object decodeParametrizedType(Type targetType, boolean restrictToInterna... | 3.26 |
framework_JsonCodec_decodeInternalType_rdh | /**
* Decodes a value that is of an internal type.
* <p>
* Ensures the encoded value is of the same type as target type.
* </p>
* <p>
* Allows restricting collections so that they must be declared using
* generics. If this is used then all objects in the collection are encoded
* using the declared type. Otherwi... | 3.26 |
framework_JsonCodec_valueChanged_rdh | /**
* Compares the value with the reference. If they match, returns false.
*
* @param fieldValue
* @param referenceValue
* @return */
private static boolean valueChanged(JsonValue fieldValue, JsonValue referenceValue) {
if (fieldValue instanceof JsonNull) {
fieldValue = null;
}
if (fieldValue == refer... | 3.26 |
framework_JsonCodec_setCustomSerializer_rdh | /**
* Set a custom JSONSerializer for a specific Class. Existence of custom
* serializers is checked after basic types (Strings, Booleans, Numbers,
* Characters), Collections and Maps, so setting custom serializers for
* these won't have any effect.
* <p>
* To remove a previously set serializer, call this method ... | 3.26 |
framework_GridRefreshWithGetId_equals_rdh | /**
* The class intentionally has strange {@code hashCode()} and
* {@code equals()} implementation to ensure if {@code Grid} relies on
* bean id rather than on bean hashcode/equals identification.
*
* {@see Object.equals}
*/@Override
public boolean equals(Object o) {
if (this == o)return true;
if ((o ==... | 3.26 |
framework_GridRefreshWithGetId_hashCode_rdh | /**
* The class intentionally has strange {@code hashCode()} and
* {@code equals()} implementation to ensure if {@code Grid} relies on
* bean id rather than on bean hashcode/equals identification.
*
* {@see Object.hashCode}
*/
@Override
public int hashCode() {
int result = id;
result = (31 * result) + (na... | 3.26 |
framework_ListSorter_setComparator_rdh | /**
* Assign or remove a comparator for a column. This comparator method, if
* defined, is always used in favour of 'natural' comparison of objects
* (i.e. the compareTo of objects implementing the Comparable interface,
* which includes all standard data classes like String, Number derivatives
* and Dates). Any ex... | 3.26 |
framework_ListSorter_sort_rdh | /**
* Apply sorting to the current ListDataSource.
*
* @param order
* the sort order list provided by the grid sort event
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
private void sort(final
List<SortOrder> order) { DataSource<T> ds = grid.getDataSource();
if
(!(ds instanceof ListDataSource)) {
... | 3.26 |
framework_Component_setStyleName_rdh | /**
* Adds or removes a style name. Multiple styles can be specified as a
* space-separated list of style names.
*
* If the {@code add} parameter is true, the style name is added to the
* component. If the {@code add} parameter is false, the style name is
* removed from the component.
* <p>
* Functionally this ... | 3.26 |
framework_Component_removeStyleNames_rdh | /**
* Removes one or more style names from component. Multiple styles can be
* specified by using multiple parameters.
*
* @param styles
* the style name or style names to be removed
* @see #removeStyleName(String)
* @see #setStyleName(String)
* @see #addStyleName(String)
* @since 8.1
*/
public default void... | 3.26 |
framework_Component_getComponent_rdh | /**
* Gets the component where the event occurred.
*
* @return the source component of the event
*/
public Component getComponent() {
return ((Component) (getSource()));
} | 3.26 |
framework_Component_addStyleNames_rdh | /**
* Adds one or more style names to this component by using one or multiple
* parameters.
*
* @param styles
* the style name or style names to be added to the component
* @see #addStyleName(String)
* @see #setStyleName(String)
* @see #removeStyleName(String)
* @since 8.1
*/
public default void addStyleNam... | 3.26 |
framework_GridDragStartEvent_m0_rdh | /**
* Get the dragged row items.
* <p>
* The ordering of the list is the following: first the item that the drag
* started from, optionally followed by all the other selected rows in
* first-to-last order on the client side.
*
* @return an unmodifiable list of items that are being dragged.
*/
public List<T> m0... | 3.26 |
framework_WidgetMap_instantiate_rdh | /**
* Create a new instance of a connector based on its type.
*
* @param classType
* {@link ComponentConnector} class to instantiate
* @return new instance of the connector
*/
public ServerConnector instantiate(Class<? extends ServerConnector> classType) {
return instmap.get(classType).get();
} | 3.26 |
framework_AbstractJavaScriptExtension_addFunction_rdh | /**
* Register a {@link JavaScriptFunction} that can be called from the
* JavaScript using the provided name. A JavaScript function with the
* provided name will be added to the connector wrapper object (initially
* available as <code>this</code>). Calling that JavaScript function will
* cause the call method in t... | 3.26 |
framework_AbstractJavaScriptExtension_callFunction_rdh | /**
* Invoke a named function that the connector JavaScript has added to the
* JavaScript connector wrapper object. The arguments can be any boxed
* primitive type, String, {@link JsonValue} or arrays of any other
* supported type. Complex types (e.g. List, Set, Map, Connector or any
* JavaBean type) must be expli... | 3.26 |
framework_GridDropTarget_addGridDropListener_rdh | /**
* Attaches drop listener for the current drop target.
* {@link GridDropListener#drop(GridDropEvent)} is called when drop event
* happens on the client side.
*
* @param listener
* Listener to handle drop event.
* @return Handle to be used to remove this listener.
*/
public Registration addGridDropListener(... | 3.26 |
framework_GridDropTarget_setDropThreshold_rdh | /**
* Sets the threshold between drop locations from the top and the bottom of
* a row in pixels.
* <p>
* Dropping an element
* <ul>
* <li>within {@code threshold} pixels from the top of a row results in a
* drop event with {@link com.vaadin.shared.ui.grid.DropLocation#ABOVE
* DropLocation.ABOVE}</li>
* <li>wi... | 3.26 |
framework_GridDropTarget_setDropMode_rdh | /**
* Sets the drop mode of this drop target.
* <p>
* When using {@link DropMode#ON_TOP}, and the grid is either empty or has
* empty space after the last row, the drop can still happen on the empty
* space, and the {@link GridDropEvent#getDropTargetRow()} will return an
* empty optional.
* <p>
* When using {@l... | 3.26 |
framework_GridDropTarget_getDropThreshold_rdh | /**
* Gets the threshold between drop locations from the top and the bottom of
* the row.
*
* @return The threshold in pixels.
*/
public int getDropThreshold() {
return getState(false).dropThreshold;
} | 3.26 |
framework_GridDropTarget_setDropAllowedOnRowsWhenSorted_rdh | /**
* Sets whether the grid accepts drop on rows as target when the grid has
* been sorted by the user.
* <p>
* Default value is {@code true} for backwards compatibility with 8.1. When
* {@code true} is used or the grid is not sorted, the mode used in
* {@link #setDropMode(DropMode)} is always used.
* <p>
* {@c... | 3.26 |
framework_ApplicationConnection_updateComponent_rdh | /**
* Method provided for backwards compatibility. Duties previously done by
* this method is now handled by the state change event handler in
* AbstractComponentConnector. The only function this method has is to
* return true if the UIDL is a "cached" update.
*
* @param component
* @param uidl
* @param manageC... | 3.26 |
framework_ApplicationConnection_getContextMenu_rdh | /**
* Singleton method to get instance of app's context menu.
*
* @return VContextMenu object
*/
public VContextMenu getContextMenu() {
if (contextMenu == null) {
contextMenu = new VContextMenu();
contextMenu.setOwner(uIConnector.getWidget());
DOM.setElementProperty(contextMenu.getElemen... | 3.26 |
framework_ApplicationConnection_captionSizeUpdated_rdh | /**
* Use to notify that the given component's caption has changed; layouts may
* have to be recalculated.
*
* @param widget
* The Widget whose caption has changed
* @deprecated As of 7.0.2, has not had any effect for a long time
*/
@Deprecated
public void captionSizeUpdated(Widget widget) {
// This doesn'... | 3.26 |
framework_ApplicationConnection_translateVaadinUri_rdh | /**
* Translates custom protocols in UIDL URI's to be recognizable by browser.
* All uri's from UIDL should be routed via this method before giving them
* to browser due URI's in UIDL may contain custom protocols like theme://.
*
* @param uidlUri
* Vaadin URI from uidl
* @return translated URI ready for browse... | 3.26 |
framework_ApplicationConnection_setResource_rdh | /**
* Sets a resource that has been pre-loaded via UIDL, such as custom
* layouts.
*
* @since 7.6
* @param name
* identifier of the resource to Set
* @param resource
* the resource
*/
public void setResource(String name, String resource) {
resourcesMap.put(name, resource);
} | 3.26 |
framework_ApplicationConnection_flushActiveConnector_rdh | /**
* Calls {@link ComponentConnector#flush()} on the active connector. Does
* nothing if there is no active (focused) connector.
*/
public void flushActiveConnector() {
ComponentConnector activeConnector = getActiveConnector();
if (activeConnector == null) {
return;
}
activeConnector.flush... | 3.26 |
framework_ApplicationConnection_setCommunicationErrorDelegate_rdh | /**
* Sets the delegate that is called whenever a communication error occurrs.
*
* @param delegate
* the delegate.
*/
public void setCommunicationErrorDelegate(CommunicationErrorHandler delegate) {
communicationErrorDelegate = delegate;
} | 3.26 |
framework_ApplicationConnection_m3_rdh | /**
* Shows the session expiration notification.
*
* @param details
* Optional details.
*/
public void m3(String details)
{
getLogger().severe("Session expired: " + details);
showError(details, configuration.getSessionExpiredError());
} | 3.26 |
framework_ApplicationConnection_m6_rdh | /**
* Returns the state of this application. An application state goes from
* "initializing" to "running" to "stopped". There is no way for an
* application to go back to a previous state, i.e. a stopped application
* can never be re-started
*
* @since 7.6
* @return the current state of this application
*/
publ... | 3.26 |
framework_ApplicationConnection_isActive_rdh | /**
* Checks if there is some work to be done on the client side
*
* @return true if the client has some work to be done, false otherwise
*/
private boolean isActive() {
return (((!getMessageHandler().isInitialUidlHandled()) || isWorkPending()) || getMessageSender().hasActiveRequest()) || isExecutingDeferredCo... | 3.26 |
framework_ApplicationConnection_getIcon_rdh | /**
* Gets an {@link Icon} instance corresponding to a URI.
*
* @since 7.2
* @param uri
* @return Icon object
*/
public Icon getIcon(String uri) {
Icon icon;
if (uri == null) {return null;
} else if (FontIcon.isFontIconUri(uri)) {
icon = GWT.create(FontIcon.class);
} else {
... | 3.26 |
framework_ApplicationConnection_unregisterPaintable_rdh | /**
*
* @deprecated As of 7.0. No longer serves any purpose.
*/
@Deprecated
public void unregisterPaintable(ServerConnector p) {
getLogger().info("unregisterPaintable (unnecessarily) called for " + Util.getConnectorString(p));
} | 3.26 |
framework_ApplicationConnection_isWorkPending_rdh | /**
* Checks if the client has running or scheduled commands
*/
private boolean isWorkPending() {
ConnectorMap connectorMap = getConnectorMap();
JsArrayObject<ServerConnector> connectors = connectorMap.getConnectorsAsJsArray();int size = connectors.size();
for (int i = 0; i < size; i++) {
Server... | 3.26 |
framework_ApplicationConnection_getVersionInfo_rdh | /**
* Helper for tt initialization
*/
private JavaScriptObject getVersionInfo() {
return configuration.getVersionInfoJSObject();
}
/**
* Publishes a JavaScript API for mash-up applications.
* <ul>
* <li><code>vaadin.forceSync()</code> sends pending variable changes, in
* effect synchronizing the server and c... | 3.26 |
framework_ApplicationConnection_handleComponentRelativeSize_rdh | /**
* Returns false
*
* @param paintable
* @return false, always
* @deprecated As of 7.0, serves no purpose
*/
@Deprecated
private boolean handleComponentRelativeSize(ComponentConnector paintable) {return false;
} | 3.26 |
framework_ApplicationConnection_getHeartbeat_rdh | /**
* Returns the hearbeat instance.
*/
public Heartbeat getHeartbeat() {
return
heartbeat;
} | 3.26 |
framework_ApplicationConnection_m4_rdh | /**
* Gets the main view.
*
* @return the main view
*/
public UIConnector m4() {return uIConnector;
} | 3.26 |
framework_ApplicationConnection_getServerRpcQueue_rdh | /**
* Gets the server RPC queue for this application.
*
* @since 7.6
* @return the server RPC queue
*/
public ServerRpcQueue getServerRpcQueue() {
return serverRpcQueue;
} | 3.26 |
framework_ApplicationConnection_getLoadingIndicator_rdh | /**
* Returns the loading indicator used by this ApplicationConnection.
*
* @return The loading indicator for this ApplicationConnection
*/
public VLoadingIndicator getLoadingIndicator() {
return loadingIndicator;
}
/**
* Determines whether or not the loading indicator is showing.
*
* @return true if the l... | 3.26 |
framework_ApplicationConnection_analyzeLayouts_rdh | /**
* Requests an analyze of layouts, to find inconsistencies. Exclusively used
* for debugging during development.
*
* @deprecated as of 7.1. Replaced by {@link UIConnector#analyzeLayouts()}
*/
@Deprecated
public void analyzeLayouts() {
m4().analyzeLayouts();
}
/**
* Sends a request to the server to print d... | 3.26 |
framework_ApplicationConnection_showCommunicationError_rdh | /**
* Shows the communication error notification.
*
* @param details
* Optional details.
* @param statusCode
* The status code returned for th... | 3.26 |
framework_ApplicationConnection_getConnectionStateHandler_rdh | /**
* Gets the communication error handler for this application.
*
* @since 7.6
* @return the server RPC queue
*/
public ConnectionStateHandler getConnectionStateHandler() {
return connectionStateHandler;
} | 3.26 |
framework_ApplicationConnection_getResource_rdh | /**
* Gets a resource that has been pre-loaded via UIDL, such as custom
* layouts.
*
* @param name
* identifier of the resource to get
* @return the resource
*/
public String getResource(String name) {
return resourcesMap.get(name);
} | 3.26 |
framework_ApplicationConnection_forceLayout_rdh | /**
* This will cause re-layouting of all components. Mainly used for
* development. Published to JavaScript.
*/
public void forceLayout() {
Duration duration = new Duration();
layoutManager.forceLayout();
getLogger().info(("forceLayout in " + duration.elapsedMillis()) + " ms");
} | 3.26 |
framework_ApplicationConnection_scheduleHeartbeat_rdh | /**
* Schedules a heartbeat request to occur after the configured heartbeat
* interval elapses if the interval is a positive number. Otherwise, does
* nothing.
*
* @deprecated as of 7.2, use {@link Heartbeat#schedule()} instead
*/
@Deprecated
protected void scheduleHeartbeat() {
heartbeat.schedule();
} | 3.26 |
framework_ApplicationConnection_updateVariable_rdh | /**
* Sends a new value for the given paintables given variable to the server.
* <p>
* The update is actually queued to be sent at a suitable time. If immediate
* is true, the update is sent as soon as possible. If immediate is false,
* the update will be sent along with the next immediate update.
* <p>
* A null... | 3.26 |
framework_ApplicationConnection_showAuthenticationError_rdh | /**
* Shows the authentication error notification.
*
* @param details
* Optional details.
*/
public void showAuthenticationError(String details) {
getLogger().severe("Authentication error: " + details);
showError(details, configuration.getAuthorizationError());
} | 3.26 |
framework_ApplicationConnection_createAndRegisterConnector_rdh | /**
* Creates a new ServerConnector with the given type and id.
*
* Creates and registers a new ServerConnector of the given type. Should
* never be called with the connector id of an existing connector.
*
* @param connectorId
* Id of the new connector
* @param connectorType
* Type of the connector, as pas... | 3.26 |
framework_ApplicationConnection_isCSSLoaded_rdh | /**
* Checks whether or not the CSS is loaded. By default checks the size of
* the loading indicator element.
*
* @return */
protected boolean isCSSLoaded() {
return cssLoaded || (getLoadingIndicator().getElement().getOffsetHeight() != 0);
} | 3.26 |
framework_ApplicationConnection_getThemeUri_rdh | /**
* Gets the URI for the current theme. Can be used to reference theme
* resources.
*
* @return URI to the current theme
*/
public String getThemeUri() {
return (configuration.getVaadinDirUrl() + "themes/") + m4().getActiveTheme();
} | 3.26 |
framework_ApplicationConnection_getConfiguration_rdh | /**
* Gets the {@link ApplicationConfiguration} for the current application.
*
* @see ApplicationConfiguration
* @return the configuration for this application
*/
public ApplicationConfiguration getConfiguration() {
return configuration;
}
/**
* Checks if there is a registered server side listener for the ev... | 3.26 |
framework_ApplicationConnection_start_rdh | /**
* Starts this application. Don't call this method directly - it's called by
* {@link ApplicationConfiguration#startNextApplication()}, which should be
* called once this application has started (first response received) or
... | 3.26 |
framework_ApplicationConnection_sendPendingVariableChanges_rdh | /**
*
* @deprecated as of 7.6, use {@link ServerRpcQueue#flush()}
*/
@Deprecated
public void sendPendingVariableChanges() {
serverRpcQueue.flush();} | 3.26 |
framework_ApplicationConnection_showError_rdh | /**
* Shows an error notification.
*
* @param details
* Optional details.
* @param message
* An ErrorMessage describing the error.
*/
protected void showError(String details, ErrorMessage
message) {
VNotification.showError(this, message.getCaption(), message.getMessage(), details,
message.getUrl())... | 3.26 |
framework_VRadioButtonGroup_updateEnabledState_rdh | /**
* Sets radio buttons enabled according to this widget's enabled and
* read-only status, as well as each option's own enabled status.
*/
protected void updateEnabledState() {
for (Map.Entry<RadioButton, JsonObject> entry : optionsToItems.entrySet()) {
RadioButton v16 =
entry.getKey();
... | 3.26 |
framework_VRadioButtonGroup_updateItemSelection_rdh | /**
* Updates the selected state of a radio button.
*
* @param radioButton
* the radio button to update
* @param value
* {@code true} if selected; {@code false} if not
*/
protected void updateItemSelection(RadioButton radioButton, boolean value)
{
radioButton.setValue(value);
radioButton.setStyleName... | 3.26 |
framework_VRadioButtonGroup_setReadonly_rdh | /**
* Sets the read-only status of this radio button group.
*
* @param readonly
* {@code true} if this widget should be read-only, {@code false}
* otherwise
*/
public void setReadonly(boolean
readonly) {
if (this.readonly != readonly) {
this.readonly = readonly;
updateEnabledState();
}... | 3.26 |
framework_VRadioButtonGroup_updateItemEnabled_rdh | /**
* Updates the enabled state of a radio button.
*
* @param radioButton
* the radio button to update
* @param value
* {@code true} if enabled; {@code false} if not
* @since 8.3.3
*/
protected void updateItemEnabled(RadioButton radioButton, boolean value) {
boolean enabled
= (value && (!isReadonly(... | 3.26 |
framework_VRadioButtonGroup_selectItemKey_rdh | /**
* Removes previous selection and adds new selection.
*
* @param selectedItemKey
* the key of the selected radio button
*/
public void selectItemKey(String selectedItemKey) {
// At most one item could be selected so reset all radio buttons
// before applying current selection
keyToOptions.values()... | 3.26 |
framework_VRadioButtonGroup_getItem_rdh | /**
* Returns the JsonObject used to populate the RadioButton widget that
* contains given Element.
*
* @since 8.2
* @param element
* the element to search for
* @return the related JsonObject; {@code null} if not found
*/
public JsonObject getItem(Element element) {
// The HTML populated in updateItem ... | 3.26 |
framework_VRadioButtonGroup_isReadonly_rdh | /**
* Returns whether this radio button group is read-only or not.
*
* @return {@code true} if this widget is read-only, {@code false} otherwise
*/
public boolean isReadonly() { return readonly;
} | 3.26 |
framework_VRadioButtonGroup_buildOptions_rdh | /**
* Build all the options.
*
* @param items
* the list of options
*/public void buildOptions(List<JsonObject> items) {
Roles.getRadiogroupRole().set(getElement());
int i = 0;
int widgetsToRemove = getWidget().getWidgetCount() - items.size();
if (widgetsToRemove < 0) {
widgetsToRemove ... | 3.26 |
framework_VRadioButtonGroup_setHtmlContentAllowed_rdh | /**
* Sets whether HTML is allowed in the item captions. If set to
* {@code true}, the captions are displayed as HTML and the developer is
* responsible for ensuring no harmful HTML is used. If set to
* {@code false}, the content is displayed as plain text.
* <p>
* This value is delegated from the RadioButtonGrou... | 3.26 |
framework_VRadioButtonGroup_setTabIndex_rdh | /**
* Sets the tabulator index for the container element that holds the radio
* buttons. It represents the entire radio button group within the browser's
* focus cycle.
*
* @param tabIndex
* tabulator index for the radio button group
*/
public void setTabIndex(int tabIndex) {
for (Widget anOptionsContainer... | 3.26 |
framework_VRadioButtonGroup_focus_rdh | /**
* Set focus to the selected radio button (or first radio button if there is
* no selection).
*/
@Override
public void focus() {
// If focus is set on creation, need to wait until options are populated
Scheduler.get().scheduleDeferred(() -> {
// if there's a selected radio button, focus it
... | 3.26 |
framework_AbstractSplitPanel_isLocked_rdh | /**
* Is the SplitPanel handle locked (user not allowed to change split
* position by dragging).
*
* @return <code>true</code> if locked, <code>false</code> otherwise.
*/
public boolean isLocked() {
return getSplitterState(false).locked;
} | 3.26 |
framework_AbstractSplitPanel_setSplitPosition_rdh | /**
* Moves the position of the splitter with given position and unit.
*
* @param pos
* the new size of the first region. Fractions are only allowed
* when unit is percentage.
* @param unit
* the unit (from {@link Sizeable}) in which the size is given.
* @param reverse
* if set to true the split splitt... | 3.26 |
framework_AbstractSplitPanel_setSplitPositionLimits_rdh | /**
* Sets the maximum and minimum position of the splitter. If the split
* position is reversed, maximum and minimum are also reversed.
*
* @param minPos
* the new minimum position
* @param minPosUnit
* the unit (from {@link Sizeable}) in which the minimum position
* is given.
* @param maxPos
* the n... | 3.26 |
framework_AbstractSplitPanel_iterator_rdh | /**
* Gets an iterator to the collection of contained components. Using this
* iterator it is possible to step through all components contained in this
* container and remove components from it.
*
* @return the component iterator.
*/
@Override
public Iterator<Component> iterator() {
return new ComponentIterator(... | 3.26 |
framework_AbstractSplitPanel_setMinSplitPosition_rdh | /**
* Sets the minimum split position to the given position and unit. If the
* split position is reversed, maximum and minimum are also reversed.
*
* @param pos
* the minimum position of the split
* @param unit
* the unit (from {@link Sizeable}) in which the size is given.
* Allowed units are UNITS_PERCEN... | 3.26 |
framework_AbstractSplitPanel_getMinSplitPosition_rdh | /**
* Returns the current minimum position of the splitter, in
* {@link #getMinSplitPositionUnit()} units.
*
* @return the minimum position of the splitter
*/
public float getMinSplitPosition() {
return getSplitterState(false).minPosition;
} | 3.26 |
framework_AbstractSplitPanel_removeComponent_rdh | /**
* Removes the component from this container.
*
* @param c
* the component to be removed.
*/
@Override
public void removeComponent(Component c) {
super.removeComponent(c);
if (c == getFirstComponent()) {
getState().firstChild = null;
} else if (c == getSecondComponent()) {
getState().secondChild = null;
}
... | 3.26 |
framework_AbstractSplitPanel_getFirstComponent_rdh | /**
* Gets the first component of this split panel. Depending on the direction
* this is either the component shown at the top or to the left.
*
* @return the first component of this split panel
*/
public Component getFirstComponent() {
return ((Component)
(getState(false).firstChild));
} | 3.26 |
framework_AbstractSplitPanel_setLocked_rdh | /**
* Lock the SplitPanels position, disabling the user from dragging the split
* handle.
*
* @param locked
* Set <code>true</code> if locked, <code>false</code> otherwise.
*/
public void setLocked(boolean locked) {
getSplitterState().locked = locked;
} | 3.26 |
framework_AbstractSplitPanel_getOldSplitPosition_rdh | /**
* Returns the position of the split before this change event occurred.
*
* @since 8.1
* @return the split position previously set to the source of this event
*/
public float getOldSplitPosition() {
return oldPosition;
} | 3.26 |
framework_AbstractSplitPanel_replaceComponent_rdh | /* Documented in superclass */@Override
public void replaceComponent(Component oldComponent, Component newComponent) {
if (oldComponent == getFirstComponent()) {setFirstComponent(newComponent);
} else if (oldComponent == getSecondComponent()) {
setSecondComponent(newComponent);
}
} | 3.26 |
framework_AbstractSplitPanel_setSecondComponent_rdh | /**
* Sets the second component of this split panel. Depending on the direction
* the second component is shown at the bottom or to the right.
*
* @param c
* The component to use as second component
*/
public void setSecondComponent(Component c) {
if (getSecondComponent() == c) {
// Nothing to do
return;
}
if (... | 3.26 |
framework_AbstractSplitPanel_getComponentCount_rdh | /**
* Gets the number of contained components. Consistent with the iterator
* returned by {@link #getComponentIterator()}.
*
* @return the number of contained components (zero, one or two)
*/
@Override
public int getComponentCount() {int count = 0;
if (getFirstComponent() != null) {
count++;
}
if (getSecondCompone... | 3.26 |
framework_AbstractSplitPanel_addSplitPositionChangeListener_rdh | /**
* Register a listener to handle {@link SplitPositionChangeEvent}s.
*
* @since 8.0
* @param listener
* {@link SplitPositionChangeListener} to be registered.
*/public Registration addSplitPositionChangeListener(SplitPositionChangeListener listener) {
return addListener(AbstractSplitPanel.SplitPositionChangeEv... | 3.26 |
framework_AbstractSplitPanel_m0_rdh | /**
* Returns the unit of position of the splitter.
*
* @return unit of position of the splitter
* @see #setSplitPosition(float, Unit)
*/
public Unit m0()
{
return posUnit;
} | 3.26 |
framework_AbstractSplitPanel_getSecondComponent_rdh | /**
* Gets the second component of this split panel. Depending on the direction
* this is either the component shown at the top or to the left.
*
* @return the second component of this split panel
*/
public Component getSecondComponent() {
return ((Component) (getState(false).secondChild));
} | 3.26 |
framework_AbstractSplitPanel_getSplitPosition_rdh | /**
* Returns the new split position that triggered this change event.
*
* @return the new value of split position
*/
public float getSplitPosition() {
return position;
} | 3.26 |
framework_AbstractSplitPanel_setMaxSplitPosition_rdh | /**
* Sets the maximum split position to the given position and unit. If the
* split position is reversed, maximum and minimum are also reversed.
*
* @param pos
* the maximum position of the split
* @param unit
* the unit (from {@link Sizeable}) in which the size is given.
* Allowed units are UNITS_PERCEN... | 3.26 |
framework_AbstractSplitPanel_m1_rdh | /**
* {@inheritDoc }
*
* @since 8.1
*/
@Override
public boolean m1() {
return userOriginated;
} | 3.26 |
framework_AbstractSplitPanel_addComponent_rdh | /**
* Add a component into this container. The component is added to the right
* or under the previous component.
*
* @param c
* the component to be added.
*/@Override
public void addComponent(Component c) {
if
(getFirstComponent() == null) {
setFirstComponent(c);} else if (getSecondComponent() == null) {
setSe... | 3.26 |
framework_AbstractSplitPanel_getMaxSplitPosition_rdh | /**
* Returns the current maximum position of the splitter, in
* {@link #getMaxSplitPositionUnit()} units.
*
* @return the maximum position of the splitter
*/
public float getMaxSplitPosition() {
return getSplitterState(false).maxPosition;
} | 3.26 |
framework_AbstractSplitPanel_getMinSplitPositionUnit_rdh | /**
* Returns the unit of the minimum position of the splitter.
*
* @return the unit of the minimum position of the splitter
*/
public Unit getMinSplitPositionUnit() {
return posMinUnit;
} | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.