name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_SQLContainer_removeAllContainerFilters_rdh | /**
* {@inheritDoc }
*/
@Override
public void removeAllContainerFilters() {
filters.clear();
refresh();
} | 3.26 |
framework_SQLContainer_hasContainerFilters_rdh | /**
* Returns true if any filters have been applied to the container.
*
* @return true if the container has filters applied, false otherwise
* @since 7.1
*/
public boolean hasContainerFilters() {
return !getContainerFilters().isEmpty();
} | 3.26 |
framework_SQLContainer_addOrderBy_rdh | /**
* Adds the given OrderBy to this container and refreshes the container
* contents with the new sorting rules.
*
* Note that orderBy.getColumn() must return a column name that exists in
* this container.
*
* @param orderBy
* OrderBy to be added to the container sorting rules
*/
public void addOrderBy(Orde... | 3.26 |
framework_SQLContainer_addRowIdChangeListener_rdh | /**
* ***********************************************
*/
/**
* ROWIDCHANGELISTENER PASSING TO QUERYDELEGATE *
*/
/**
* ***********************************************
*/
/**
* Adds a RowIdChangeListener to the QueryDelegate.
*
* @param listener
*/
public void addRowIdChangeListener(RowIdChangeListener listene... | 3.26 |
framework_SQLContainer_getQueryDelegate_rdh | /**
* Returns the QueryDelegate set for this SQLContainer.
*
* @return current querydelegate
*/
protected QueryDelegate getQueryDelegate() {
return queryDelegate;
} | 3.26 |
framework_SQLContainer_m0_rdh | /**
* *******************************************
*/
/**
* Methods from interface Container.Indexed *
*/
/**
* *******************************************
*/
@Overridepublic int m0(Object itemId) {
// First check if the id is in the added items
for (int ix = 0; ix < addedItems.size(); ix++) {
RowItem item = add... | 3.26 |
framework_SQLContainer_getPageLength_rdh | /**
* Returns the currently set page length.
*
* @return current page length
*/
public int getPageLength() {
return pageLength;
} | 3.26 |
framework_SQLContainer_commit_rdh | /**
* Commits all the changes, additions and removals made to the items of this
* container.
*
* @throws UnsupportedOperationException
* @throws SQLException
*/
public void commit() throws UnsupportedOperationException, SQLException {
try {
getLogger().log(Level.FINER, "Commiting changes through delegate...");
qu... | 3.26 |
framework_SQLContainer_addItemSetChangeListener_rdh | /**
* ***************************************
*/
/**
* ITEMSETCHANGENOTIFIER IMPLEMENTATION *
*/
/**
* ***************************************
*/
@Override
public void addItemSetChangeListener(Container.ItemSetChangeListener listener) {
if (itemSetChangeListeners == null) {
itemSetChangeListeners = new LinkedLi... | 3.26 |
framework_SQLContainer_m2_rdh | /**
* *********************************
*/
/**
* UNSUPPORTED CONTAINER FEATURES *
*/
/**
* *********************************
*/
@Override
public boolean m2(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException {
throw new UnsupportedOperationException();
} | 3.26 |
framework_SQLContainer_enableCacheFlushNotifications_rdh | /**
* Calling this will enable this SQLContainer to send and receive cache
* flush notifications for its lifetime.
*/
public void enableCacheFlushNotifications() {
if (!notificationsEnabled) {
notificationsEnabled = true;
CacheFlushNotifier.addInstance(this);
}
} | 3.26 |
framework_SQLContainer_setAutoCommit_rdh | /**
* Set auto commit mode enabled or disabled. Auto commit mode means that all
* changes made to items of this container will be immediately written to
* the underlying data source.
*
* @param autoCommitEnabled
* true to enable auto commit mode
*/
public void
setAutoCommit(boolean autoCommitEnabled) {
autoCom... | 3.26 |
framework_SQLContainer_removeRowIdChangeListener_rdh | /**
* Removes a RowIdChangeListener from the QueryDelegate.
*
* @param listener
*/public void removeRowIdChangeListener(RowIdChangeListener listener) {
if (queryDelegate instanceof QueryDelegate.RowIdChangeNotifier) {
((QueryDelegate.RowIdChangeNotifier)
(queryDelegate)).removeListener(listener);
}
}
/**
*
* @de... | 3.26 |
framework_SQLContainer_rollback_rdh | /**
* Rolls back all the changes, additions and removals made to the items of
* this container.
*
* @throws UnsupportedOperationException
* @throws SQLException
*/
public void rollback() throws UnsupportedOperationException, SQLException
{
getLogger().log(Level.FINE, "Rolling back changes...");
removedItems.clea... | 3.26 |
framework_SQLContainer_nextItemId_rdh | /**
* *******************************************
*/
/**
* Methods from interface Container.Ordered *
*/
/**
* *******************************************
*/
@Override
public Object nextItemId(Object itemId) {
int index = m0(itemId) + 1;
try {
return getIdByIndex(index);
} catch (IndexOutOfBoundsException e) {
r... | 3.26 |
framework_SQLContainer_getReferencedItemId_rdh | /**
* Fetches the Item Id of the referenced item from the target SQLContainer.
*
* @param itemId
* Item Id of the reference source (from this container)
* @param refdCont
* Target SQLContainer of the reference
* @return Item Id of the referenced item, or null if not found
*/
public Object getReferencedItemI... | 3.26 |
framework_SQLContainer_isModified_rdh | /**
* Returns modify state of the container.
*
* @return true if contents of this container have been modified
*/
public boolean isModified() {
return ((!removedItems.isEmpty()) || (!addedItems.isEmpty())) || (!modifiedItems.isEmpty());
} | 3.26 |
framework_SQLContainer_removeContainerFilter_rdh | /**
* {@inheritDoc }
*/
@Override
public void removeContainerFilter(Filter filter) {
filters.remove(filter);
refresh();
} | 3.26 |
framework_SQLContainer_setPageLength_rdh | /**
* Sets the page length used in lazy fetching of items from the data source.
* Also resets the cache size to match the new page length.
*
* As a side effect the container will be refreshed.
*
* @param pageLength
* new page length
*/
public void setPageLength(int pageLength) {
setPageLengthInternal(pageLeng... | 3.26 |
framework_SQLContainer_getPropertyIds_rdh | /**
* Fetches property id's (column names and their types) from the data
* source.
*
* @throws SQLException
*/
private void getPropertyIds() throws SQLException {propertyIds.clear();
propertyTypes.clear();
queryDelegate.setFilters(null);
queryDelegate.setOrderBy(null);
ResultSet rs = null;
ResultSetMetaData rsmd =... | 3.26 |
framework_SQLContainer_getReferencedItem_rdh | /**
* Fetches the referenced item from the target SQLContainer.
*
* @param itemId
* Item Id of the reference source (from this container)
* @param refdCont
* Target SQLContainer of the reference
* @return The referenced item, or null if not found
*/
public Item getReferencedItem(Object itemId, SQLContainer ... | 3.26 |
framework_SQLContainer_getPage_rdh | /**
* Fetches a page from the data source based on the values of pageLength and
* currentOffset. Also updates the set of primary keys, used in
* identification of RowItems.
*/
private void
getPage() {
updateCount();
ResultSet rs = null;
ResultSetMetaData rsmd = null;
cachedItems.clear();
itemIndexes.clear();
try... | 3.26 |
framework_SQLContainer_setPageLengthInternal_rdh | /**
* Sets the page length internally, without refreshing the container.
*
* @param pageLength
* the new page length
*/
private void setPageLengthInternal(int pageLength) {
this.pageLength = (pageLength > 0) ? pageLength : f0;
cacheOverlap = getPageLength();
cachedItems.setCacheLimit((CACHE_RATIO * getPageLengt... | 3.26 |
framework_GenericFontIcon_getHtml_rdh | /**
* Utility method for generating HTML that displays an icon from specific
* fontFamiliy with a given codePoint in the font.
*
* @param fontFamily
* Name of the font family
* @param codePoint
* Icon's character code point in the font
* @return */
public static String getHtml(String fontFamily, int codeP... | 3.26 |
framework_InMemoryDataProviderHelpers_propertyComparator_rdh | /**
* Creates a comparator for the return type of the given
* {@link ValueProvider}, sorted in the direction specified by the given
* {@link SortDirection}.
*
* @param valueProvider
* the value provider to use
* @param sortDirection
* the sort direction to use
* @return the created comparator
*/
public st... | 3.26 |
framework_InMemoryDataProviderHelpers_filteringByCaseInsensitiveString_rdh | /**
* Wraps a given data provider so that its filter tests the given predicate
* with the lower case string provided by the given value provider.
*
* @param dataProvider
* the data provider to wrap
* @param valueProvider
* the value provider for providing string values to filt... | 3.26 |
framework_InMemoryDataProviderHelpers_filteringByIgnoreNull_rdh | /**
* Wraps a given data provider so that its filter ignores null items
* returned by the given value provider.
*
* @param dataProvider
* the data provider to wrap
* @param valueProvider
* the value provider for providing values to filter
* @param predicate
* the predicate to combine null filtering with
... | 3.26 |
framework_InMemoryDataProviderHelpers_createEqualsFilter_rdh | /**
* Creates a predicate that compares equality of the given required value to
* the value the given value provider obtains.
*
* @param valueProvider
* the value provider to use
* @param requiredValue
* the required value
* @return the created predicate
*/
public static <T, V> SerializablePredicate<T> cre... | 3.26 |
framework_InMemoryDataProviderHelpers_createValueProviderFilter_rdh | /**
* Creates a new predicate from the given predicate and value provider. This
* allows using a predicate of the value providers return type with objects
* of the value providers type.
*
* @param valueProvider
* the value provider to use
* @param valueFilter
* the original predicate
* @return the created ... | 3.26 |
framework_Query_getLimit_rdh | /**
* Gets the limit of items to fetch. The limit is only used when fetching
* items, but not when counting the number of available items.
* <p>
* <strong>Note: </strong>It is possible that
* {@code offset + limit > item count}
*
* @return number of items to fetch
*/
public int getLimit() {
return limit;
} | 3.26 |
framework_Query_m0_rdh | /**
* Gets the first index of items to fetch. The offset is only used when
* fetching items, but not when counting the number of available items.
*
* @return offset for data request
*/
public int m0() {
return offset;
} | 3.26 |
framework_Method_getLookupKey_rdh | /**
* Gets the string that is internally used when looking up generated support
* code for this method. This is the same as {@link #getSignature()}, but
* without any type parameters.
*
* @return the string to use for looking up generated support code
* @since 7.2
*/
public String getLookupKey() {
return (ty... | 3.26 |
framework_Method_getSignature_rdh | /**
* The unique signature used to identify this method. The structure of the
* returned string may change without notice and should not be used for any
* other purpose than identification. The signature is currently based on
* the declaring type's signature and the method's name.
*
* @return the unique signature... | 3.26 |
framework_SessionDestroyEvent_getSession_rdh | /**
* Gets the Vaadin service session that is no longer used.
*
* @return the Vaadin service session
*/public VaadinSession getSession() {
return session;
} | 3.26 |
framework_SessionDestroyEvent_getService_rdh | /**
* Gets the Vaadin service from which the even originates.
*
* @return the Vaadin service
*/
public VaadinService getService() {
return getSource();
} | 3.26 |
framework_LegacyCommunicationManager_getClientCache_rdh | /**
*
* @deprecated As of 7.1. See #11410.
*/
@Deprecated
public ClientCache getClientCache(UI uI) {
Integer uiId = Integer.valueOf(uI.getUIId());
ClientCache cache = uiToClientCache.get(uiId);
if (cache == null) {
cache =
new ClientCache();
uiToClientCache.put(uiId, cache);
... | 3.26 |
framework_LegacyCommunicationManager_encodeState_rdh | /**
*
* @deprecated As of 7.1. See #11411.
*/
@Deprecated
public static JsonObject encodeState(ClientConnector connector, SharedState state) {
UI uI = connector.getUI();
ConnectorTracker connectorTracker = uI.getConnectorTracker();
Class<? extends SharedState> stateType = connector.getStateType();
Js... | 3.26 |
framework_LegacyCommunicationManager_removeClientCache_rdh | /**
* Clear out client cache for the given UI. This should be called when the
* UI is detached and the cache becomes obsolete.
*
* @param uI
* the UI whose client cache should be removed
* @deprecated because this cleanup is only needed for a deprecated feature
*/
@Deprecated
private void removeClientCache(UI ... | 3.26 |
framework_LegacyCommunicationManager_getTagForType_rdh | /**
*
* @deprecated As of 7.1. Will be removed in the future.
*/
@Deprecated
public String getTagForType(Class<? extends ClientConnector> class1) {
Integer id = typeToKey.get(class1);
if (id == null) {
id = nextTypeKey++;
typeToKey.put(class1, id);
if (getLogger().isLoggable(Level.FIN... | 3.26 |
framework_LegacyCommunicationManager_getStreamVariableTargetUrl_rdh | /**
*
* @deprecated As of 7.1. See #11411.
*/
@Deprecated
public String getStreamVariableTargetUrl(ClientConnector owner, String name, StreamVariable value) {
/* We will use the same APP/* URI space as ApplicationResources but
prefix url with UPLOAD
e.g. APP/UPLOAD/[UIID]/[PID]/[NAME]/[SECKEY]
... | 3.26 |
framework_LegacyCommunicationManager_isComponentVisibleToClient_rdh | /**
* Checks if the component should be visible to the client. Returns false if
* the child should not be sent to the client, true otherwise.
*
* @deprecated As of 7.1. See #11411.
* @param child
* The child to check
* @return true if the child is visible to the client, false otherwise
*/
@Deprecated
public s... | 3.26 |
framework_LegacyCommunicationManager_findJsStateReferenceType_rdh | /**
* Finds the highest super class which implements
* {@link JavaScriptConnectorState}. In practice, this finds either
* {@link JavaScriptComponentState} or {@link JavaScriptExtensionState}.
* This is used to find which state properties the client side knows
* something about.
*
* @param stateType
* the stat... | 3.26 |
framework_LegacyCommunicationManager_getDependencies_rdh | /**
*
* @deprecated As of 7.1. See #11413.
*/
@Deprecated
public Map<String, Class<?>> getDependencies() {
return publishedFileContexts;
} | 3.26 |
framework_LegacyCommunicationManager_handleConnectorRelatedException_rdh | /**
* Handles an exception related to a connector by invoking the appropriate
* error handler.
*
* @deprecated As of 7.1. See #11411.
* @param throwable
* the exception to handle
* @param connector
* the connector that the exception is related to
*/
@Deprecated
public void handleConnectorRelatedException(C... | 3.26 |
framework_LegacyCommunicationManager_cache_rdh | /**
*
* @param object
* @return true if the given class was added to cache
*/
public boolean cache(Object object) {
return res.add(object);
} | 3.26 |
framework_LegacyCommunicationManager_registerDependency_rdh | /**
* Resolves a dependency URI, registering the URI with this
* {@code LegacyCommunicationManager} if needed and returns a fully
* qualified URI.
*
* @deprecated As of 7.1. See #11413.
*/
@Deprecatedpublic String registerDependency(String resourceUri, Class<?> context) {
try {
URI uri = new URI(resou... | 3.26 |
framework_ConnectorMap_unregisterConnector_rdh | /**
* Unregisters the given connector; always use after removing a connector.
* This method does not remove the connector from the DOM, but marks the
* connector so that ApplicationConnection may clean up its references to
* it. Removing the widget from DOM is component containers responsibility.
*
* @param conne... | 3.26 |
framework_ConnectorMap_clear_rdh | /**
* Removes all registered connectors.
*/
public void clear() {
idToComponentDetail.clear();}
/**
* Retrieves the connector whose widget matches the parameter.
*
* @param widget
* The widget
* @return A connector with {@literal widget} | 3.26 |
framework_ConnectorMap_getElement_rdh | /**
* Gets the main element for the connector with the given id. The reverse of
* {@link #getConnectorId(Element)}.
*
* @param connectorId
* the id of the widget whose element is desired
* @return the element for the connector corresponding to the id
*/
public Element getElement(String connectorId) {
Serve... | 3.26 |
framework_ListSet_removeFromSet_rdh | /**
* Removes "e" from the set if it no longer exists in the list.
*
* @param e
*/
private void removeFromSet(E e) {
Integer dupl = duplicates.get(e);
... | 3.26 |
framework_ListSet_add_rdh | /**
* Works as java.util.ArrayList#add(int, java.lang.Object) but returns
* immediately if the element is already in the ListSet.
*/
@Overridepublic void add(int index, E element) {
if (contains(element)) {
// Duplicates are not allowed
return;
}
super.add(index, element);
itemSet.ad... | 3.26 |
framework_ListSet_contains_rdh | // Delegate contains operations to the set
@Override
public boolean contains(Object o) {
return itemSet.contains(o);
} | 3.26 |
framework_ListSet_addDuplicate_rdh | /**
* Marks the "element" can be found more than once from the list. Allowed in
* {@link #set(int, Object)} to make sorting work.
*
* @param element
*/
private void addDuplicate(E element) {
Integer nr = duplicates.get(element);
if (nr == null) {
nr = 1;
} else {
nr++;
}
/* Stor... | 3.26 |
framework_TreeData_removeItem_rdh | /**
* Remove a given item from this structure. Additionally, this will
* recursively remove any descendants of the item.
*
* @param item
* the item to remove, or null to clear all data
* @return this
* @throws IllegalArgumentException
* if the item does not exist in this structure
*/
public TreeData<T> rem... | 3.26 |
framework_TreeData_addRootItems_rdh | /**
* Adds the items of the given stream as root items to this structure.
*
* @param items
* the stream of root items to add
* @return this
* @throws IllegalArgumentException
* if any of the given items have already been added to this
* structure
* @throws NullPointerException
* if any of the items ar... | 3.26 |
framework_TreeData_m0_rdh | /**
* Adds the given items as root items and uses the given value provider to
* recursively populate children of the root items.
*
* @param rootItems
* the root items to add
* @param childItemProvider
* the value provider used to recursively populate this TreeData
* from the given root items
* @return th... | 3.26 |
framework_TreeData_setParent_rdh | /**
* Moves an item to become a child of the given parent item. The new parent
* item must exist in the hierarchy. Setting the parent to {@code null}
* makes the item a root item. After making changes to the tree data,
* {@link TreeDataProvider#refreshAll()} should be called.
*
* @param item
* the item to be s... | 3.26 |
framework_TreeData_addItem_rdh | /**
* Adds a data item as a child of {@code parent}. Call with {@code null} as
* parent to add a root level item. The given parent item must already exist
* in this structure, and an item can only be added to this structure once.
*
* @param parent
* the parent item for which the items are added as children
* @... | 3.26 |
framework_TreeData_clear_rdh | /**
* Clear all items from this structure. Shorthand for calling
* {@link #removeItem(Object)} with null.
*
* @return this
*/
public TreeData<T> clear() {
removeItem(null);
return this;
} | 3.26 |
framework_TreeData_addItems_rdh | /**
* Adds the given items as root items and uses the given value provider to
* recursively populate children of the root items.
*
* @param rootItems
* the root items to add
* @param childItemProvider
* the value provider used to recursively populate this TreeData
* from the given root items
* @return th... | 3.26 |
framework_VListSelect_getRows_rdh | /**
* Returns the number of visible items for the list select.
*
* @return the number of items to show
* @see ListBox#setVisibleItemCount(int)
*/
public int getRows() {
return select.getVisibleItemCount();
} | 3.26 |
framework_VListSelect_getTabIndex_rdh | /**
* Gets the tab index.
*
* @return the tab index
*/
public int getTabIndex() {
return select.getTabIndex();
}
/**
* Sets this select as read only, meaning selection cannot be changed.
*
* @param readOnly
* {@code true} for read only, {@code false} | 3.26 |
framework_VListSelect_setRows_rdh | /**
* Sets the number of visible items for the list select.
*
* @param rows
* the number of items to show
* @see ListBox#setVisibleItemCount(int)
*/
public void setRows(int rows) {
if (select.getVisibleItemCount() != rows) {
select.setVisibleItemCount(rows);
}
} | 3.26 |
framework_VListSelect_getSelectedItems_rdh | /**
* Gets the currently selected item values.
*
* @return the currently selected item keys
*/
protected FastStringSet getSelectedItems() {
final FastStringSet selectedItemKeys = FastStringSet.create();
for (int i = 0; i < select.getItemCount(); i++) {
if (select.isItemSelected(i)) {
... | 3.26 |
framework_VListSelect_setTabIndex_rdh | /**
* Sets the tab index.
*
* @param tabIndex
* the tab index to set
*/
public void setTabIndex(int tabIndex) {
select.setTabIndex(tabIndex);
} | 3.26 |
framework_DependencyLoader_loadDependencies_rdh | /**
* Loads the any dependencies present in the given json snippet.
*
* Handles all dependencies found with the key "{@literal dependencies}".
*
* Ensures that
* <ul>
* <li>JavaScript dependencies are loaded in the given order.
* <li>HTML imports are loaded after all JavaScripts are loaded and
* executed.
* <... | 3.26 |
framework_DependencyLoader_m0_rdh | /**
* Sets the ApplicationConnection this instance is connected to.
*
* Only used internally.
*
* @param connection
* The ApplicationConnection for this instance
*/
public void m0(ApplicationConnection connection) {
if (this.connection != null) {
throw new IllegalStateException("Application connect... | 3.26 |
framework_VTabsheet_focusTabAtIndex_rdh | /**
* Focus the specified tab. Make sure to call this only from user
* events, otherwise will break things.
*
* @param tabIndex
* the index of the tab to set.
*/
void focusTabAtIndex(int tabIndex) {
Tab tabToFocus = tb.getTab(tabIndex);
if (tabToFocus != null) {
tabToFocus.focus();
}
} | 3.26 |
framework_VTabsheet_setFocusedTab_rdh | /**
* Sets the tab that has the focus currently.
*
* @param focusedTab
* the focused tab or {@code null} if no tab should be
* focused anymore
*/
private void setFocusedTab(Tab focusedTab) {
this.focusedTab = focusedTab;
} | 3.26 |
framework_VTabsheet_onFocus_rdh | /**
* Delegate method for the onFocus event occurring on Tab.
*
* @since 7.2.6
* @param newFocusTab
* the new focused tab.
* @see #onBlur(Tab)
*/
public void onFocus(Tab newFocusTab) {if (connector.hasEventListener(EventId.FOCUS)) {
// Send the focus event only first time when we focus on any
// tab. The focus... | 3.26 |
framework_VTabsheet_sendTabClosedEvent_rdh | /**
* Informs the server that closing of a tab has been requested.
*
* @param tabIndex
* the index of the closed to close
*/
void sendTabClosedEvent(int tabIndex) {
getRpcProxy().closeTab(tabKeys.get(tabIndex));
} | 3.26 |
framework_VTabsheet_setEnabledOnServer_rdh | /**
* Set tab enabled state on server (there is no client-side disabling,
* but the naming convention matches
* {@link #setHiddenOnServer(boolean)}).
*
* @param enabled
* {@code true} if enabled on server, {@code false} otherwise
*/
public void setEnabledOnServer(boolean enabled) {
enabledOnServer = enab... | 3.26 |
framework_VTabsheet_clearPaintables_rdh | /**
* {@inheritDoc }
*
* @deprecated This method is not called by the framework code anymore.
*/
@Deprecated
@Override
protected void clearPaintables() {
int i = tb.getTabCount();
while (i > 0) {
tb.removeTab(--i);
}
tabPanel.clear();
} | 3.26 |
framework_VTabsheet_getActiveTab_rdh | /**
* Returns the active tab. This method uses
* {@link VTabsheetBase#activeTabIndex} to identify the tab, which usually
* matches the value saved to {@link TabBar#selected}, but the former has a
* default value and the latter doesn't.
*
* @return the active tab
*/
private Tab getActiveTab() {
return tb.getTab(a... | 3.26 |
framework_VTabsheet_getCloseButton_rdh | /**
* Returns the close button if one exists.
*
* @return the close button, or {@code null} if not found
*/
@SuppressWarnings("deprecation")
public Element getCloseButton() {
return DOM.asOld(closeButton);
} | 3.26 |
framework_VTabsheet_m3_rdh | /**
* Returns the index of the first visible tab on the server.
*
* @return the index, or {@code -1} if not found
*/
private int m3() {
return getNextVisibleTab(-1);
}
/**
* Find the next tab that is visible on the server. Being scrolled out
* of view or clipped on the client does not make a difference. Re... | 3.26 |
framework_VTabsheet_showTabs_rdh | /**
* Makes tab bar visible.
*
* @since 7.2
*/
public void showTabs() {
tb.setVisible(true);
removeStyleName(CLASSNAME + "-hidetabs");
tb.recalculateCaptionWidths();
} | 3.26 |
framework_VTabsheet_recalculateCaptionWidth_rdh | /**
* Recalculates the required caption width and sets it as the new width.
* Also updates the tab width bookkeeping of the tab bar if needed. The
* default implementation for the bookkeeping logic attempts to account
* for different margins and paddings in the first tab element and its
* caption element versus th... | 3.26 |
framework_VTabsheet_scrollIntoView_rdh | /**
* Scrolls the given tab into view. If the tab is hidden on the server,
* nothing is done.
*
* @param tab
* the tab to scroll to
*/
private void scrollIntoView(Tab tab) {if (!tab.isHiddenOnServer())
{
// Check for visibility first as clipped tabs to the right are
// always visible.
// On IE8 a tab with false... | 3.26 |
framework_VTabsheet_getRpcProxy_rdh | /**
* Returns the client to server RPC proxy for the tabsheet.
*
* @since 7.2
* @return RPC proxy
*/
protected TabsheetServerRpc getRpcProxy() {
return connector.getRpcProxy(TabsheetServerRpc.class);
} | 3.26 |
framework_VTabsheet_onBlur_rdh | /**
* Delegate method for the onBlur event occurring on Tab.
*
* @param blurSource
* the source of the blur.
* @see #onFocus(Tab)
*/public void onBlur(Tab blurSource) {
if ((focusedTab != null) && (focusedTab == blurSource)) {
if (connector.hasEventListener(EventId.BLUR)) {
scheduleBlur(focusedTab);
}
}
} | 3.26 |
framework_VTabsheet_addClickHandler_rdh | /**
* Adds a {@link ClickEvent} handler to the tab caption.
*
* @param handler
* the click handler
*/
public void addClickHandler(ClickHandler handler) {
tabCaption.addClickHandler(handler);
} | 3.26 |
framework_VTabsheet_iLayout_rdh | /**
* Run internal layouting.
*/
public void iLayout() {// reset the width adjuster, in case the styles have changed
tb.firstAdjusted = false;
tb.pendingTab = null;
tb.firstTabWidthAdjuster = 0;
updateTabScroller();
tb.recalculateCaptionWidths();
} | 3.26 |
framework_VTabsheet_showAllTabs_rdh | /**
* For internal use only. May be removed or replaced in the future.
*/
public void showAllTabs() {
scrollerIndex = tb.m3();
scrollerPositionTabId = (scrollerIndex < 0) ? null : tb.getTab(scrollerIndex).id;
for (int i = 0; i < tb.getTabCount(); i++) {
Tab t = tb.getTab(i);
if (!t.isHiddenOnServer()) {
t.setVisible... | 3.26 |
framework_VTabsheet_removeAssistiveDescription_rdh | /**
* Removes the {@code aria-describedby} attribute from this tab element.
* This should be called when this tab loses focus.
*/
public void removeAssistiveDescription()
{
Roles.getTablistRole().removeAriaDescribedbyProperty(getElement());
} | 3.26 |
framework_VTabsheet_isClipped_rdh | /**
* Checks whether the given tab is clipped out of view (hidden behind the
* scroller element or overflowing further). Does not check whether hiding
* the scroller element would bring this tab fully into view.
*
* @return {@code true} if the given tab is clipped, {@code false} otherwise
*/
private boolean isCli... | 3.26 |
framework_VTabsheet_tabSizeMightHaveChanged_rdh | /**
* This should be triggered from an onload event within the given tab's
* caption to signal that icon contents have finished loading. The contents
* may have changed the tab's width. This might in turn require changes in
* the scroller (hidden tabs might need to be scrolled back into view), or
* even the width ... | 3.26 |
framework_VTabsheet_renderContent_rdh | /**
* Renders the widget content for a tab sheet.
*
* @param newWidget
* the content widget or {@code null} if there is none
*/
public void renderContent(Widget newWidget) {
assert
tabPanel.getWidgetCount() <= 1;
if (null == newWidget) {
newWidget = new SimplePanel();
}
if (tabPanel.getWidgetCount() == 0) {
tab... | 3.26 |
framework_VTabsheet_setTabIndex_rdh | /**
* For internal use only. May be renamed or removed in a future release.
* <p>
* Sets the tabulator index for the active tab of the tab sheet. The active
* tab represents the entire tab sheet in the browser's focus cycle
* (excluding any focusable elements within the content panel).
* <p>
* This value is dele... | 3.26 |
framework_VTabsheet_keyFocusTab_rdh | /**
* Focus the specified tab using left/right key. Selection won't change
* until the selection key is pressed. Selectability should be checked
* before calling this method.
*/
private void keyFocusTab(int newTabIndex) {
Tab tab = tb.getTab(newTabIndex);
if (tab == null) {
return;
}
// Focus the tab, otherwise th... | 3.26 |
framework_VTabsheet_getContentAreaBorderWidth_rdh | /**
* For internal use only. May be removed or replaced in the future.
*
* @return the horizontal width consumed by borders of the content area
*/
public int getContentAreaBorderWidth() {
return WidgetUtil.measureHorizontalBorder(contentNode);
} | 3.26 |
framework_VTabsheet_getLastVisibleTab_rdh | /**
* Returns the index of the last visible tab on the server.
*
* @return the index, or {@code -1} if not found
*/
private int getLastVisibleTab() {
return getPreviousVisibleTab(getTabCount());
}
/**
* Find the previous tab that is visible on the server. Being scrolled
* out of view or clipped on the client... | 3.26 |
framework_VTabsheet_setHiddenOnServer_rdh | /**
* Set tab hidden state on server (as opposed to simply hidden because
* it's scrolled out of view).
*
* @param hiddenOnServer
* {@code true} if hidden on server, {@code false} otherwise
*/
public void setHiddenOnServer(boolean hiddenOnServer) {
this.hiddenOnServer = hiddenOnServer;
Roles.getTabRole(... | 3.26 |
framework_VTabsheet_focusNextTab_rdh | /**
* Right arrow key focus move. Selection won't change until the
* selection key is pressed, but the target tab must be selectable. If
* no selectable tabs are found after currently focused tab, focus isn't
* moved.
*/
private void focusNextTab() {
int newTabIndex = focusedTabIndex;
// Find the next visible an... | 3.26 |
framework_VTabsheet_recalculateCaptionWidths_rdh | /**
* Recalculates the caption widths for all tabs within this tab bar, and
* updates the tab width bookkeeping if necessary.
*/
private void recalculateCaptionWidths() {
for (int i = 0; i < getTabCount(); ++i) {
getTab(i).recalculateCaptionWidth();
}
} | 3.26 |
framework_VTabsheet_updateContentNodeHeight_rdh | /**
* For internal use only. May be removed or replaced in the future.
*/
public void updateContentNodeHeight() {
if (!isDynamicHeight()) {
int contentHeight = getOffsetHeight();
contentHeight -= deco.getOffsetHeight();
contentHeight -= tb.getOffsetHeight();
ComputedStyle cs = new ComputedStyle(contentNode);
content... | 3.26 |
framework_VTabsheet_removeTab_rdh | /**
* Removes a tab from this tab bar and updates the scroll position if
* needed. If there is no tab that corresponds with the given index,
* nothing is done.
* <p>
* Tab removal should always get triggered via the connector, even when
* a tab's close button is clicked. That ensures that the states stay in
* sy... | 3.26 |
framework_VTabsheet_m0_rdh | /**
* Returns whether the tab is enabled on server (there is no client-side
* disabling, but the naming convention matches
* {@link #isHiddenOnServer()}).
*
* @return {@code true} if enabled on server, {@code false} otherwise
*/
public boolean m0() {
return enabledOnServer;
} | 3.26 |
framework_VTabsheet_getNextTabKey_rdh | /**
* Returns the key code of the keyboard shortcut that focuses the next tab
* in a focused tabsheet.
*
* @return the key to move focus to the next tab
*/
protected int getNextTabKey() {
return KeyCodes.KEY_RIGHT;
} | 3.26 |
framework_VTabsheet_setTabulatorIndex_rdh | /**
* Sets the index that represents the tab's position in the browser's
* focus cycle. Negative index means that this tab element is not
* reachable via tabulator navigation.
* <p>
* By default only the selected tab has a non-negative tabulator index,
* and represents the entire tab sheet. If there are any other... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.