* @param e | * @param e | ||||
* element for enabling or disabling text selection | * element for enabling or disabling text selection | ||||
* @param enable | * @param enable | ||||
* <code>true</code> if selection is enabled; </code>false</code> | |||||
* <code>true</code> if selection is enabled; <code>false</code> | |||||
* if not | * if not | ||||
*/ | */ | ||||
public native static void setTextSelectionEnabled(Element e, boolean enable) | public native static void setTextSelectionEnabled(Element e, boolean enable) |
* Is the cell reference for a cell in the header of the Grid. | * Is the cell reference for a cell in the header of the Grid. | ||||
* | * | ||||
* @since 7.5 | * @since 7.5 | ||||
* @return <code>true</true> if referenced cell is in the header, | |||||
* @return <code>true</code> if referenced cell is in the header, | |||||
* <code>false</code> if not | * <code>false</code> if not | ||||
*/ | */ | ||||
public boolean isHeader() { | public boolean isHeader() { | ||||
* Is the cell reference for a cell in the body of the Grid. | * Is the cell reference for a cell in the body of the Grid. | ||||
* | * | ||||
* @since 7.5 | * @since 7.5 | ||||
* @return <code>true</true> if referenced cell is in the body, | |||||
* @return <code>true</code> if referenced cell is in the body, | |||||
* <code>false</code> if not | * <code>false</code> if not | ||||
*/ | */ | ||||
public boolean isBody() { | public boolean isBody() { | ||||
* Is the cell reference for a cell in the footer of the Grid. | * Is the cell reference for a cell in the footer of the Grid. | ||||
* | * | ||||
* @since 7.5 | * @since 7.5 | ||||
* @return <code>true</true> if referenced cell is in the footer, | |||||
* @return <code>true</code> if referenced cell is in the footer, | |||||
* <code>false</code> if not | * <code>false</code> if not | ||||
*/ | */ | ||||
public boolean isFooter() { | public boolean isFooter() { |
/** | /** | ||||
* This method exists for the needs of {@link VTreeTable} only. May be | * This method exists for the needs of {@link VTreeTable} only. May be | ||||
* removed or replaced in the future.</br> | |||||
* </br> | |||||
* removed or replaced in the future.<br> | |||||
* <br> | |||||
* Calculates the maximum indent of the hierarcyColumn, if applicable. | * Calculates the maximum indent of the hierarcyColumn, if applicable. | ||||
*/ | */ | ||||
protected void calculateMaxIndent() { | protected void calculateMaxIndent() { |
* Is the cell reference for a cell in the header of the Grid. | * Is the cell reference for a cell in the header of the Grid. | ||||
* | * | ||||
* @since 7.5 | * @since 7.5 | ||||
* @return <code>true</true> if referenced cell is in the header, | |||||
* @return <code>true</code> if referenced cell is in the header, | |||||
* <code>false</code> if not | * <code>false</code> if not | ||||
*/ | */ | ||||
public boolean isHeader() { | public boolean isHeader() { | ||||
* Is the cell reference for a cell in the body of the Grid. | * Is the cell reference for a cell in the body of the Grid. | ||||
* | * | ||||
* @since 7.5 | * @since 7.5 | ||||
* @return <code>true</true> if referenced cell is in the body, | |||||
* @return <code>true</code> if referenced cell is in the body, | |||||
* <code>false</code> if not | * <code>false</code> if not | ||||
*/ | */ | ||||
public boolean isBody() { | public boolean isBody() { | ||||
* Is the cell reference for a cell in the footer of the Grid. | * Is the cell reference for a cell in the footer of the Grid. | ||||
* | * | ||||
* @since 7.5 | * @since 7.5 | ||||
* @return <code>true</true> if referenced cell is in the footer, | |||||
* @return <code>true</code> if referenced cell is in the footer, | |||||
* <code>false</code> if not | * <code>false</code> if not | ||||
*/ | */ | ||||
public boolean isFooter() { | public boolean isFooter() { |
/** | /** | ||||
* An implementation of the <code>{@link Container.Indexed}</code> interface | * An implementation of the <code>{@link Container.Indexed}</code> interface | ||||
* with all important features. | * with all important features. | ||||
* </p> | |||||
* <p> | |||||
* | * | ||||
* Features: | * Features: | ||||
* <ul> | * <ul> |
/** | /** | ||||
* Default implementation of {@link ConverterFactory}. Provides converters for | * Default implementation of {@link ConverterFactory}. Provides converters for | ||||
* standard types like {@link String}, {@link Double} and {@link Date}. | * standard types like {@link String}, {@link Double} and {@link Date}. | ||||
* </p> | |||||
* <p> | * <p> | ||||
* Custom converters can be provided by extending this class and using | * Custom converters can be provided by extending this class and using | ||||
* {@link VaadinSession#setConverterFactory(ConverterFactory)}. | * {@link VaadinSession#setConverterFactory(ConverterFactory)}. |
} | } | ||||
/** | /** | ||||
* Example: <code>setTimeFormat(TimeFormat.Format12H);</code></br> | |||||
* Example: <code>setTimeFormat(TimeFormat.Format12H);</code><br> | |||||
* Set to null, if you want the format being defined by the locale. | * Set to null, if you want the format being defined by the locale. | ||||
* | * | ||||
* @param format | * @param format |
* Gets style name of event. In the client, style name will be set to the | * Gets style name of event. In the client, style name will be set to the | ||||
* event's element class name and can be styled by CSS | * event's element class name and can be styled by CSS | ||||
* </p> | * </p> | ||||
* Styling example:</br> | |||||
* <code>Java code: </br> | |||||
* Styling example:<br> | |||||
* <code>Java code: <br> | |||||
* event.setStyleName("color1"); | * event.setStyleName("color1"); | ||||
* </br></br> | |||||
* CSS:</br> | |||||
* .v-calendar-event-color1 {</br> | |||||
* background-color: #9effae;</br>}</code> | |||||
* <br><br> | |||||
* CSS:<br> | |||||
* .v-calendar-event-color1 {<br> | |||||
* background-color: #9effae;<br>}</code> | |||||
* | * | ||||
* @return Style name. | * @return Style name. | ||||
*/ | */ |
* A component that represents a floating popup window that can be added to a | * A component that represents a floating popup window that can be added to a | ||||
* {@link UI}. A window is added to a {@code UI} using | * {@link UI}. A window is added to a {@code UI} using | ||||
* {@link UI#addWindow(Window)}. | * {@link UI#addWindow(Window)}. | ||||
* </p> | |||||
* <p> | * <p> | ||||
* The contents of a window is set using {@link #setContent(Component)} or by | * The contents of a window is set using {@link #setContent(Component)} or by | ||||
* using the {@link #Window(String, Component)} constructor. | * using the {@link #Window(String, Component)} constructor. |