name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_Page_add_rdh | /**
* Injects a CSS resource into the page.
*
* @param resource
* The resource to inject.
*/
public void add(Resource resource)
{
if (resource == null) {
throw new IllegalArgumentException("Cannot inject null resource");
}
InjectedStyleResource v3 = new InjectedStyleResource(resource);
i... | 3.26 |
framework_Page_m1_rdh | /**
* Gets the page in which the fragment has changed.
*
* @return the page in which the fragment has changed
*/
public Page m1() {
return ((Page) (getSource()));
} | 3.26 |
framework_Page_getWindowName_rdh | /**
* Gets the window.name value of the browser window of this page.
*
* @since 7.2
* @return the window name, <code>null</code> if the name is not known
*/
public String getWindowName() {
return windowName;
}
/**
* For internal use only. Updates the internal state with the given values.
* Does not resize the P... | 3.26 |
framework_Page_setUriFragment_rdh | /**
* Sets URI fragment. This method fires a {@link UriFragmentChangedEvent}
*
* @param newUriFragment
* id of the new fragment
* @see UriFragmentChangedEvent
* @see Page.UriFragmentChangedListener
*/
public void setUriFragment(String newUriFragment) {
setUriFragment(newUriFragment, true);
} | 3.26 |
framework_Page_updateLocation_rdh | /**
* For internal use only. Used to update the server-side location when the
* client-side location changes.
*
* @since 8.0
* @param location
* the new location URI
* @param fireEvents
* whether to fire {@link UriFragmentChangedEvent} if the URI
* fragment changes
* @param firePopstate
* whether to ... | 3.26 |
framework_Page_addBrowserWindowResizeListener_rdh | /**
* Adds a new {@link BrowserWindowResizeListener} to this UI. The listener
* will be notified whenever the browser window within which this UI resides
* is resized.
* <p>
* In most cases, the UI should be in lazy resize mode when using browser
* window resize listeners. Otherwise, a large number of events can ... | 3.26 |
framework_Page_pushState_rdh | /**
* Updates the browsers URI without causing actual page change. This method
* is useful if you wish implement "deep linking" to your application.
* Calling the method also adds a new entry to clients browser history and
* you can further use {@link PopStateListener} to track the usage of
* back/forward feature ... | 3.26 |
framework_Page_getUI_rdh | /**
* Returns the {@link UI} of this {@link Page}.
*
* @return the {@link UI} of this {@link Page}.
* @since 8.2
*/
public UI getUI() {
return uI;
} | 3.26 |
framework_Page_getPage_rdh | /**
* Gets the page in which the uri has changed.
*
* @return the page in which the uri has changed
*/
public Page getPage() {
return ((Page) (getSource()));
} | 3.26 |
framework_Page_updateBrowserWindowSize_rdh | /**
* For internal use only. Updates the internal state with the given values.
* Does not resize the Page or browser window.
*
* @since 7.2
* @param width
* the new browser window width
* @param height
* the new browser window height
* @param fireEvents
* whether to fire {@link BrowserWindowResizeEvent}... | 3.26 |
framework_Page_addPopStateListener_rdh | /**
* Adds a listener that gets notified every time the URI of this page is
* changed due to back/forward functionality of the browser.
* <p>
* Note that one only gets notified when the back/forward button affects
* history changes with-in same UI, created by
* {@link Page#pushState(String)} or {@link Page#replac... | 3.26 |
framework_Page_getLocation_rdh | /**
* Returns the location URI of this page, as reported by the browser. Note
* that this may not be consistent with the server URI the application is
* deployed in due to potential proxies, redirections and similar.
*
* @return The browser location URI.
* @throws IllegalStateException
* if the
* {@link Dep... | 3.26 |
framework_Page_getUriFragment_rdh | /**
* Gets the currently set URI fragment.
* <p>
* Returns <code>null</code> if there is no fragment and an empty string if
* there is an empty fragment.
* <p>
* To listen to changes in fragment, hook a
* {@link Page.UriFragmentChangedListener}.
*
* @return the current fragment in browser location URI.
* @see... | 3.26 |
framework_Page_getStyles_rdh | /**
* Returns that stylesheet associated with this Page. The stylesheet
* contains additional styles injected at runtime into the HTML document.
*
* @since 7.1
*/
public Styles getStyles() {
if (styles == null) {
styles = new Styles(uI);
}
return styles;
} | 3.26 |
framework_Page_m6_rdh | /**
* Shows a notification message.
*
* @see Notification
* @param notification
* The notification message to show
* @deprecated As of 7.0, use Notification.show(Page) instead.
*/
@Deprecated
public void m6(Notification notification) {
notification.show(this);
} | 3.26 |
framework_Page_getBrowserWindowWidth_rdh | /**
* Gets the last known width of the browser window in which this uI resides.
*
* @return the browser window width in pixels
*/public int getBrowserWindowWidth() {
return browserWindowWidth;
} | 3.26 |
framework_Page_setTitle_rdh | /**
* Sets the page title. The page title is displayed by the browser e.g. as
* the title of the browser window or as the title of the tab.
* <p>
* If this value is set to null, the previously set page title will be left
* as-is. Set to empty string to clear the title.
*
* @param title
* the page title to set... | 3.26 |
framework_Page_getHeight_rdh | /**
* Gets the new browser window height.
*
* @return an integer with the new pixel height of the browser window
*/
public int getHeight() {return f0;
} | 3.26 |
framework_Page_m2_rdh | /**
* Get the new URI fragment.
*
* @return the new fragment
*/
public String m2() {
return uriFragment;
} | 3.26 |
framework_Page_open_rdh | /**
* Opens the given URL in a window with the given size, border and name. For
* more information on the meaning of {@code windowName}, see
* {@link #open(String, String)}.
* <p>
* Please note that opening a popup window in this way may be blocked by the
* browser's popup-blocker because the new browser window i... | 3.26 |
framework_Page_reload_rdh | /**
* Reloads the page in the browser.
*/
public void reload() {
uI.getRpcProxy(PageClientRpc.class).reload();
}
/**
* Returns the page state.
* <p>
* The page state is transmitted to UIConnector together with
* {@link UIState} | 3.26 |
framework_Page_replaceState_rdh | /**
* Updates the browsers URI without causing actual page change in the same
* way as {@link #pushState(URI)}, but does not add new entry to browsers
* history.
*
* @param uri
* the URI to be used for replaceState operation. The URI is
* resolved over the current location. If the given URI is
* absolute,... | 3.26 |
framework_Page_getPendingDependencies_rdh | /**
* Returns all pending dependencies.
* <p>
* For internal use only, calling this method will clear the pending
* dependencies.
*
* @return the pending dependencies to the current page
* @since 8.1
*/
public Collection<Dependency> getPendingDependencies() {
List<Dependency> copy = new ArrayList<>();
if (pen... | 3.26 |
framework_Page_getBrowserWindowHeight_rdh | /**
* Gets the last known height of the browser window in which this UI
* resides.
*
* @return the browser window height in pixels
*/
public int getBrowserWindowHeight() {
return browserWindowHeight;
} | 3.26 |
framework_ExternalResource_setMIMEType_rdh | /**
* Sets the MIME type of the resource.
*/
public void setMIMEType(String mimeType) {
this.mimeType = mimeType;
} | 3.26 |
framework_ExternalResource_getMIMEType_rdh | /**
* Gets the MIME type of the resource.
*
* @see com.vaadin.server.Resource#getMIMEType()
*/
@Override
public String getMIMEType() {
if (mimeType == null) {
mimeType = FileTypeResolver.getMIMEType(getURL());}
return mimeType;
} | 3.26 |
framework_ColorPickerTestUI_getStream_rdh | /* Must implement this method that returns the resource as a stream. */
@Override
public InputStream getStream() {
/* Create an image and draw something on it. */
BufferedImage image = new BufferedImage(270, 270, BufferedImage.TYPE_INT_RGB);
Graphics drawable = image.getGraphics();
drawable.setColor(bgC... | 3.26 |
framework_ColorPickerTestUI_updateDisplay_rdh | // This is called whenever a colorpicker popup is closed
/**
* Update display.
*
* @param fg
* the fg
* @param bg
* the bg
*/
public void updateDisplay(Color fg, Color bg) {
Color awtFg = new Color(fg.getRed(), fg.getGreen(), fg.getBlue());
Color awtBg = new Color(bg.getRed(), bg.getGreen(), bg.getBl... | 3.26 |
framework_ExtraSuperTextAreaConnector_getState_rdh | // @DelegateToWidget will not work with overridden state
@Override
public ExtraSuperTextAreaState getState() {
return ((ExtraSuperTextAreaState) (super.getState()));
} | 3.26 |
framework_AbstractRendererConnector_getColumnId_rdh | /**
* Gets the column id for a column.
* <p>
* In case this renderer wants be able to identify a column in such a way
* that the server also understands it, the column id is used for that.
* Columns are identified by unified ids between the client and the server.
*
* @param column
* the column object
* @retu... | 3.26 |
framework_AbstractRendererConnector_createRenderer_rdh | /**
* Creates a new Renderer instance associated with this renderer connector.
* <p>
* You should typically not override this method since the framework by
* default generates an implementation that uses
* {@link com.google.gwt.core.client.GWT#create(Class)} to create a renderer
* of the same type as returned by ... | 3.26 |
framework_AbstractRendererConnector_m0_rdh | /**
* Decodes the given JSON value into a value of type T so it can be passed
* to the {@link #getRenderer() renderer}.
*
* @param value
* the value to decode
* @return the decoded value of {@code value}
*/
public T m0(JsonValue value) {
@SuppressWarnings("unchecked")T decodedValue = ((T) (JsonDecoder.deco... | 3.26 |
framework_AbstractRendererConnector_getRowKey_rdh | /**
* Gets the row key for a row object.
* <p>
* In case this renderer wants be able to identify a row in such a way that
* the server also understands it, the row key is used for that. Rows are
* identified by unified keys between the client and the server.
*
* @param row
* the row object
* @return the row ... | 3.26 |
framework_XhrConnectionError_getPayload_rdh | /**
* Returns the payload which was sent to the server.
*
* @return the payload which was sent, never null
*/
public JsonObject getPayload() {
return payload;
} | 3.26 |
framework_XhrConnectionError_getRequest_rdh | /**
* Returns the request for which the problem occurred.
*
* @return the request where the problem occurred
*/
public Request getRequest()
{
return request;} | 3.26 |
framework_Design_createHtml_rdh | /**
* Generates an html tree representation of the component hierarchy having
* the root designContext.getRootComponent(). The hierarchy is stored under
* <body> in the tree. The generated tree represents a valid html
* document.
*
* @param designContext
* a DesignContext object specifying the root compo... | 3.26 |
framework_Design_m1_rdh | /**
* Constructs a component hierarchy from the design specified as an html
* tree.
*
* <p>
* If a component root is given, the component instances created during
* reading the design are assigned to its member fields based on their id,
* local id, and caption
*
* @param doc
* the html tree
* @param compon... | 3.26 |
framework_Design_parse_rdh | /**
* Parses the given input stream into a jsoup document
*
* @param html
* the stream containing the design
* @return the parsed jsoup document
* @throws IOException
*/
private static Document parse(InputStream html)
{
try {
Document doc = Jsoup.parse(html, UTF_8.name(), "", Parser.htmlParser());
... | 3.26 |
framework_Design_setComponentMapper_rdh | /**
* Sets the component mapper that is used for resolving between tag names
* and component instances.
* <p>
* Please note that this setting is global, so care should be taken to avoid
* conflicting changes.
*
* @param componentMapper
* the component mapper to set; not <code>null</code>
* @since 7.5.0
*/pu... | 3.26 |
framework_Design_classNameToElementName_rdh | /**
* Creates the name of the html tag corresponding to the given class
* name. The name is derived by converting each uppercase letter to
* lowercase and inserting a dash before the letter. No dash is inserted
* before the first letter of the class name.
*
* @param className
* the name of the class without a ... | 3.26 |
framework_Design_setComponentFactory_rdh | /**
* Sets the component factory that is used for creating component instances
* based on fully qualified class names derived from a design file.
* <p>
* Please note that this setting is global, so care should be taken to avoid
* conflicting changes.
*
* @param componentFactory
* the component factory to set;... | 3.26 |
framework_Design_read_rdh | /**
* Loads a design from the given input stream.
*
* @param design
* The stream to read the design from
* @return The root component of the design
*/
public static Component read(InputStream design) {
DesignContext context = read(design, null);
return context.getRootComponent();
} | 3.26 |
framework_Design_resolveComponentClass_rdh | /**
* Resolves a component class based on the fully qualified name of the
* class.
*
* @param qualifiedClassName
* the fully qualified name of the resolved class
* @param context
* the design context for which the class is resolved
* @return a component class object representing the provided class name
*/
... | 3.26 |
framework_Design_designToComponentTree_rdh | /**
* Constructs a component hierarchy from the design specified as an html
* tree.
*
* <p>
* If a component root is given, the component instances created during
* reading the design are assigned to its member fields based on their id,
* local id, and caption
* <p>
* If... | 3.26 |
framework_Design_write_rdh | /**
* Writes the given jsoup document to the output stream (in UTF-8)
*
* @param doc
* the document to write
* @param outputStream
* the stream to write to
* @throws IOException
* if writing fails
*/
private static void write(Document doc, OutputStream outputStream) throws IOException {
doc.outputSetting... | 3.26 |
framework_BootstrapResponse_getRequest_rdh | /**
* Gets the request for which the generated bootstrap HTML will be the
* response.
*
* This can be used to read request headers and other additional
* information. Please note that {@link VaadinSession#getBrowser()} will not
* be available because the bootstrap page is generated before the bootstrap
* javascr... | 3.26 |
framework_BootstrapResponse_m0_rdh | /**
* Sets the URI resolver used in the bootstrap process.
*
* @param uriResolver
* the uri resolver which is used
* @since 8.1
*/
public void m0(VaadinUriResolver uriResolver) {
assert this.uriResolver == null : "URI resolver should never be changed";
assert uriResolver != null : "URI resolver should n... | 3.26 |
framework_BootstrapResponse_getBootstrapHandler_rdh | /**
* Gets the bootstrap handler that fired this event.
*
* @return the bootstrap handler that fired this event
*/
public BootstrapHandler getBootstrapHandler() {
return ((BootstrapHandler) (getSource()));
} | 3.26 |
framework_WebBrowser_updateClientSideDetails_rdh | /**
* For internal use by VaadinServlet/VaadinPortlet only. Updates all
* properties in the class according to the given information.
*
* @param sw
* Screen width
* @param sh
* Screen height
* @param tzo
* TimeZone offset in minutes from GMT
* @param rtzo
* raw TimeZone offset in minutes from GMT (w/... | 3.26 |
framework_WebBrowser_isTouchDevice_rdh | /**
*
* @return true if the browser is detected to support touch events
*/public boolean isTouchDevice() {
return touchDevice;
} | 3.26 |
framework_WebBrowser_updateRequestDetails_rdh | /**
* For internal use by VaadinServlet/VaadinPortlet only. Updates all
* properties in the class according to the given information.
*
* @param request
* the Vaadin request to read the information from
*/public void updateRequestDetails(VaadinRequest request) {
locale = request.getLocale();
address = r... | 3.26 |
framework_WebBrowser_getCurrentDate_rdh | /**
* Returns the current date and time of the browser. This will not be
* entirely accurate due to varying network latencies, but should provide a
* close-enough value for most cases. Also note that the returned Date
* object uses servers default time zone, not the clients.
* <p>
* To get the actual date and tim... | 3.26 |
framework_WebBrowser_getTimezoneOffset_rdh | /**
* Returns the browser-reported TimeZone offset in milliseconds from GMT.
* This includes possible daylight saving adjustments, to figure out which
* TimeZone the user actually might be in, see
* {@link #getRawTimezoneOffset()}.
*
* @see WebBrowser#getRawTimezoneOffset()
* @return timezone offset in milliseco... | 3.26 |
framework_WebBrowser_isSecureConnection_rdh | /**
* Is the connection made using HTTPS?
*/
public boolean isSecureConnection() {
return secureConnection;
} | 3.26 |
framework_WebBrowser_getBrowserMinorVersion_rdh | /**
* Gets the minor version of the browser the user is using.
*
* @see #getBrowserMajorVersion()
* @return The minor version of the browser or -1 if not known.
*/
public int getBrowserMinorVersion() {
if (browserDetails == null) {
return -1;
}
return
browserDetails.getBrowserMinorVersion();
} | 3.26 |
framework_WebBrowser_getBrowserMajorVersion_rdh | /**
* Gets the major version of the browser the user is using.
*
* <p>
* Note that Internet Explorer in IE7 compatibility mode might return 8 in
* some cases even though it should return 7.
* </p>
*
* @return The major version of the browser or -1 if not known.
*/
public int getBrowserMajorVersion() {
if (brow... | 3.26 |
framework_WebBrowser_getAddress_rdh | /**
* Gets the IP-address of the web browser. If the application is running
* inside a portlet, this method will return null.
*
* @return IP-address in 1.12.123.123 -format
*/
public String getAddress() {
return address;
} | 3.26 |
framework_WebBrowser_getBrowserApplication_rdh | /**
* Get the browser user-agent string.
*
* @return The raw browser userAgent string
*/ public String getBrowserApplication() {return browserApplication;
} | 3.26 |
framework_WebBrowser_getScreenWidth_rdh | /**
* Gets the width of the screen in pixels. This is the full screen
* resolution and not the width available for the application.
*
* @return the width of the screen in pixels.
*/public
int getScreenWidth() {
return screenWidth;
} | 3.26 |
framework_WebBrowser_getBrowserVersion_rdh | /**
* Gets the complete browser version as string. The version is given by the
* browser through the user agent string and usually consists of
* dot-separated numbers. Note that the string may contain characters other
* than dots and digits.
*
* @return the complete browser version or {@code null} if unknown
* @... | 3.26 |
framework_AbstractJavaScriptRenderer_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_UIDL_getDoubleVariable_rdh | /**
* Gets the value of the named variable.
*
* @param name
* the name of the variable
* @return the value of the variable
*/
public double getDoubleVariable(String name) {
return var().getRawNumber(name);
} | 3.26 |
framework_UIDL_m2_rdh | /**
* Gets the named attribute as an int array.
*
* @param name
* the name of the attribute to get
* @return the attribute value
*/
public int[] m2(final String name) {return attr().getIntArray(name);
}
/**
* Get attributes value as string whatever the type is
*
* @param name
* @return string presentation ... | 3.26 |
framework_UIDL_getIntVariable_rdh | /**
* Gets the value of the named variable.
*
* @param name
* the name of the variable
* @return the value of the variable
*/
public int getIntVariable(String name) {
return var().getInt(name);
} | 3.26 |
framework_UIDL_getFloatAttribute_rdh | /**
* Gets the named attribute as a float.
*
* @param name
* the name of the attribute to get
* @return the attribute value
*/
public float getFloatAttribute(String name) {
return ((float) (attr().getRawNumber(name)));
} | 3.26 |
framework_UIDL_getChildByTagName_rdh | /**
* Returns the child UIDL by its name. If several child nodes exist with the
* given name, the first child UIDL will be returned.
*
* @param tagName
* @return the child UIDL or null if child wit given name was not found
*/
public UIDL getChildByTagName(String tagName) {
for (Object next : this) {
i... | 3.26 |
framework_UIDL_getMapAttribute_rdh | /**
* Gets the named attribute as a Map of named values (key/value pairs).
*
* @param name
* the name of the attribute to get
* @return the attribute Map
*/
public ValueMap getMapAttribute(String name) {
return attr().getValueMap(name);
} | 3.26 |
framework_UIDL_hasAttribute_rdh | /**
* Indicates whether or not the named attribute is available.
*
* @param name
* the name of the attribute to check
* @return true if the attribute is available, false otherwise
*/
public boolean hasAttribute(final String name) {
return attr().containsKey(name);
}
/**
* Gets the UIDL for the child at th... | 3.26 |
framework_UIDL_hasVariable_rdh | /**
* Checks if the named variable is available.
*
* @param name
* the name of the variable desired
* @return true if the variable exists, false otherwise
*/
public boolean hasVariable(String name) {
return hasVariables() && var().containsKey(name);
} | 3.26 |
framework_UIDL_getStringArrayVariableAsSet_rdh | /**
* Gets the value of the named String[] variable as a Set of Strings.
*
* @param name
* the name of the variable
* @return the value of the variable
*/
public Set<String> getStringArrayVariableAsSet(final String name) {
final HashSet<String> s = new HashSet<>();
JsArrayString a = var().getJSStringArr... | 3.26 |
framework_UIDL_getLongVariable_rdh | /**
* Gets the value of the named variable.
*
* @param name
* the name of the variable
* @return the value of the variable
*/
public long getLongVariable(String name) {
return ((long) (var().getRawNumber(name)));
} | 3.26 |
framework_UIDL_m3_rdh | /**
*
* @deprecated */
@Deprecated
public String m3() {
return toString();
} | 3.26 |
framework_UIDL_getStringArrayVariable_rdh | /**
* Gets the value of the named variable.
*
* @param name
* the name of the variable
* @return the value of the variable
*/
public String[] getStringArrayVariable(String name) {
return var().getStringArray(name);
} | 3.26 |
framework_UIDL_getIntAttribute_rdh | /**
* Gets the named attribute as an int.
*
* @param name
* the name of the attribute to get
* @return the attribute value
*/
public int getIntAttribute(String name) {
return attr().getInt(name);
} | 3.26 |
framework_UIDL_getFloatVariable_rdh | /**
* Gets the value of the named variable.
*
* @param name
* the name of the variable
* @return the value of the variable
*/
public float getFloatVariable(String name) {
return ((float) (var().getRawNumber(name)));
} | 3.26 |
framework_UIDL_getPaintableVariable_rdh | /**
* Gets the Paintable with the id found in the named variable's value.
*
* @param name
* the name of the variable
* @return the Paintable referenced by the variable, if it exists
*/
public ServerConnector getPaintableVariable(String name, ApplicationConnection connection) {
return ConnectorMap.get(connec... | 3.26 |
framework_UIDL_m1_rdh | /**
* Gets the named attribute as a long.
*
* @param name
* the name of the attribute to get
* @return the attribute value
*/
public long m1(String name) {
return ((long) (attr().getRawNumber(name)));
} | 3.26 |
framework_UIDL_iterator_rdh | /**
* Gets an iterator that can be used to iterate trough the children of this
* UIDL.
* <p>
* The Object returned by <code>next()</code> will be appropriately typed -
* if it's UIDL, {@link #getTag()} can be used to check which section is in
* question.
* </p>
* <p>
* T... | 3.26 |
framework_UIDL_getStringAttribute_rdh | /**
* Gets the named attribute as a String.
*
* @param name
* the name of the attribute to get
* @return the attribute value
*/
public String getStringAttribute(String name) {
return attr().getString(name);
} | 3.26 |
framework_UIDL_getBooleanAttribute_rdh | /**
* Gets the named attribute as a boolean.
*
* @param name
* the name of the attribute to get
* @return the attribute value
*/
public boolean getBooleanAttribute(String name) {
return
attr().getBoolean(name);
} | 3.26 |
framework_UIDL_getBooleanVariable_rdh | /**
* Gets the value of the named variable.
*
* @param name
* the name of the variable
* @return the value of the variable
*/
public boolean getBooleanVariable(String name) {
return var().getBoolean(name);
} | 3.26 |
framework_UIDL_getId_rdh | /**
* Shorthand for getting the attribute named "id", which for Paintables is
* the essential paintableId which binds the server side component to the
* client side widget.
*
* @return the value of the id attribute, if available
*/
public String getId() {return getStringAttribute("id");
}
/**
* Gets the name o... | 3.26 |
framework_UIDL_m0_rdh | /**
* Gets the names of variables available.
*
* @return the names of available variables
*/
public Set<String> m0() { if (!hasVariables()) {return new HashSet<>();
} else {Set<String> keySet = var().getKeySet();
return keySet;
}
} | 3.26 |
framework_UIDL_getIntArrayVariable_rdh | /**
* Gets the value of the named variable.
*
* @param name
* the name of the variable
* @return the value of the variable
*/
public int[] getIntArrayVariable(String name) {
return var().getIntArray(name);
} | 3.26 |
framework_UIDL_getStringVariable_rdh | /**
* Gets the value of the named variable.
*
* @param name
* the name of the variable
* @return the value of the variable
*/
public String getStringVariable(String name) {
return var().getString(name);
} | 3.26 |
framework_UIDL_getDoubleAttribute_rdh | /**
* Gets the named attribute as a double.
*
* @param name
* the name of the attribute to get
* @return the attribute value
*/
public double getDoubleAttribute(String name) {
return attr().getRawNumber(name);
} | 3.26 |
framework_UIDL_getStringArrayAttribute_rdh | /**
* Gets the named attribute as an array of Strings.
*
* @param name
* the name of the attribute to get
* @return the attribute value
*/
public String[] getStringArrayAttribute(String name) {
return attr().getStringArray(name);
} | 3.26 |
framework_UIDL_getAttributeNames_rdh | /**
* Gets the names of the attributes available.
*
* @return the names of available attributes
*/
public Set<String> getAttributeNames() {
Set<String> v0
= attr().getKeySet();
v0.remove("v");
return v0;
} | 3.26 |
framework_UIDL_getPaintableAttribute_rdh | /**
* Gets the Paintable with the id found in the named attributes's value.
*
* @param name
* the name of the attribute
* @return the Paintable referenced by the attribute, if it exists
*/
public ServerConnector getPaintableAttribute(String name, ApplicationConnection connection) {
return ConnectorMap.get(c... | 3.26 |
framework_AbstractRemoteDataSource_resetDataAndSize_rdh | /**
* Updates the size, discarding all cached data. This method is used when
* the size of the container is changed without any information about the
* structure of the change. In this case, all cached data is discarded to
* avoid cache offset issues.
* <p>
* If you have information about the structure of the cha... | 3.26 |
framework_AbstractRemoteDataSource_insertRowData_rdh | /**
* Informs this data source that new data has been inserted from the server.
*
* @param firstRowIndex
* the destination index of the new row data
* @param count
* the number of rows inserted
*/
protected void insertRowData(int firstRowIndex, int count) {
Profiler.enter("AbstractRemoteDataSource.insertRowD... | 3.26 |
framework_AbstractRemoteDataSource_getCachedRange_rdh | /**
* Gets the current range of cached rows.
*
* @return the range of currently cached rows
*/
public Range getCachedRange() {
return cached;
} | 3.26 |
framework_AbstractRemoteDataSource_dropFromCache_rdh | /**
* Drop the given range of rows from this data source's cache.
*
* @param range
* the range of rows to drop
*/
protected void dropFromCache(Range range) {
for (int i = range.getStart(); i < range.getEnd(); i++)
{
// Called after dropping from cache. Dropped row is passed as a
// parameter, but is no longer... | 3.26 |
framework_AbstractRemoteDataSource_unpinHandle_rdh | /**
* Unpins a previously pinned row with given handle. This function can be
* overridden to do specific logic related to unpinning rows.
*
* @param handle
* row handle to unpin
* @throws IllegalStateException
* if given row handle has not been pinned before
*/
protected void unpinHandle(RowHandleImpl handl... | 3.26 |
framework_AbstractRemoteDataSource_pinHandle_rdh | /**
* Pins a row with given handle. This function can be overridden to do
* specific logic related to pinning rows.
*
* @param handle
* row handle to pin
*/
protected void pinHandle(RowHandleImpl handle) {
Object key = handle.key;
Integer count = pinnedCounts.get(key);
if (count == null) {
count = Integer.valu... | 3.26 |
framework_AbstractRemoteDataSource_indexOf_rdh | /**
* Retrieves the index for given row object.
* <p>
* <em>Note:</em> This method does not verify that the given row object
* exists at all in this DataSource.
*
* @param row
* the row object
* @return index of the row; or <code>-1</code> if row is not available
*/
public int indexOf(T row) {
Object key = g... | 3.26 |
framework_AbstractRemoteDataSource_setRow_rdh | /**
* A method for the data source to update the row data.
*
* @param row
* the updated row object
*/
public void setRow(final T row) {
this.row = row;
assert getRowKey(row).equals(key) : (((("The old key does not " + "equal the new key for the given row (old: ") + key) + ", new :") + getRowKey(row)) + "... | 3.26 |
framework_AbstractRemoteDataSource_setTrackInvalidatedRows_rdh | /**
* Sets whether or not to track invalidated rows inside
* {@link #insertRowData(int, int)} and use them to fill cache when
* {{@link #setRowData(int, List)}} is called.
*
* @param trackInvalidatedRows
* a boolean value specifying if to track invalidated rows or
* not, default value <code>true</code>
*/
p... | 3.26 |
framework_AbstractRemoteDataSource_onDropFromCache_rdh | /**
* A hook that can be overridden to do something whenever a row has been
* dropped from the cache. DataSource no longer has anything in the given
* index.
*
* @since 7.6
* @param rowIndex
* the index of the dropped row
* @param removed
* the removed row object
*/
protected void onDropFromCache(int rowI... | 3.26 |
framework_AbstractRemoteDataSource_onResponse_rdh | /**
* Called by the
* {@link AbstractRemoteDataSource#requestRows(int, int, RequestRowsCallback)}
* implementation when data has been received.
*
* @param rowData
* a list of row objects starting at the requested offset
* @param totalSize
... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.