protected Element altElement;
protected String altText;
+ public static final String CLASSNAME = "v-browserframe";
+
public VBrowserFrame() {
Element root = Document.get().createDivElement();
setElement(root);
- setStylePrimaryName("v-browserframe");
+ setStyleName(CLASSNAME);
createAltTextElement();
}
import com.vaadin.client.ui.menubar.MenuItem;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.combobox.ComboBoxConstants;
+import com.vaadin.shared.ui.combobox.ComboBoxState;
import com.vaadin.shared.ui.combobox.FilteringMode;
import com.vaadin.ui.ComboBox;
return (VFilterSelect) super.getWidget();
}
+ @Override
+ public ComboBoxState getState() {
+ return (ComboBoxState) super.getState();
+ }
+
@Override
public void layout() {
VFilterSelect widget = getWidget();
@Deprecated
public static final FilteringMode FILTERINGMODE_CONTAINS = FilteringMode.CONTAINS;
- private static final String CLASSNAME = "v-filterselect";
+ public static final String CLASSNAME = "v-filterselect";
private static final String STYLE_NO_INPUT = "no-input";
protected int pageLength = 10;
import com.vaadin.client.ui.datefield.VCalendarPanel.FocusChangeListener;
import com.vaadin.client.ui.datefield.VCalendarPanel.TimeChangeListener;
import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.datefield.InlineDateFieldState;
import com.vaadin.shared.ui.datefield.Resolution;
import com.vaadin.ui.InlineDateField;
public VDateFieldCalendar getWidget() {
return (VDateFieldCalendar) super.getWidget();
}
+
+ @Override
+ public InlineDateFieldState getState() {
+ return (InlineDateFieldState) super.getState();
+ }
}
import com.vaadin.client.ui.datefield.VCalendarPanel.FocusChangeListener;
import com.vaadin.client.ui.datefield.VCalendarPanel.TimeChangeListener;
import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.datefield.PopupDateFieldState;
import com.vaadin.shared.ui.datefield.Resolution;
import com.vaadin.ui.DateField;
return (VPopupCalendar) super.getWidget();
}
+ @Override
+ public PopupDateFieldState getState() {
+ return (PopupDateFieldState) super.getState();
+ }
+
@Override
protected void setWidgetStyleName(String styleName, boolean add) {
super.setWidgetStyleName(styleName, add);
import com.vaadin.client.ApplicationConnection;
import com.vaadin.client.UIDL;
import com.vaadin.shared.ui.datefield.Resolution;
+import com.vaadin.shared.ui.datefield.TextualDateFieldState;
public class TextualDateConnector extends AbstractDateFieldConnector {
public VTextualDate getWidget() {
return (VTextualDate) super.getWidget();
}
+
+ @Override
+ public TextualDateFieldState getState() {
+ return (TextualDateFieldState) super.getState();
+ }
}
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.embedded.EmbeddedConstants;
import com.vaadin.shared.ui.embedded.EmbeddedServerRpc;
+import com.vaadin.shared.ui.embedded.EmbeddedState;
import com.vaadin.ui.Embedded;
@Connect(Embedded.class)
return (VEmbedded) super.getWidget();
}
+ @Override
+ public EmbeddedState getState() {
+ return (EmbeddedState) super.getState();
+ }
+
protected final ClickEventHandler clickEventHandler = new ClickEventHandler(
this) {
public class VFlash extends HTML {
+ public static final String CLASSNAME = "v-flash";
+
protected String source;
protected String altText;
protected String classId;
protected String height;
public VFlash() {
- setStylePrimaryName("v-flash");
+ setStyleName(CLASSNAME);
}
public void setSource(String source) {
public class VImage extends Image {
+ public static final String CLASSNAME = "v-image";
+
public VImage() {
- setStylePrimaryName("v-image");
+ setStylePrimaryName(CLASSNAME);
}
}
import com.vaadin.shared.ui.BorderStyle;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.link.LinkConstants;
+import com.vaadin.shared.ui.link.LinkState;
import com.vaadin.ui.Link;
@Connect(Link.class)
});
}
+ @Override
+ public LinkState getState() {
+ return (LinkState) super.getState();
+ }
+
@Override
public boolean delegateCaptionHandling() {
return false;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.shared.ui.menubar.MenuBarConstants;
+import com.vaadin.shared.ui.menubar.MenuBarState;
@Connect(value = com.vaadin.ui.MenuBar.class, loadStyle = LoadStyle.LAZY)
public class MenuBarConnector extends AbstractComponentConnector implements
return (VMenuBar) super.getWidget();
}
+ @Override
+ public MenuBarState getState() {
+ return (MenuBarState) super.getState();
+ }
+
@Override
public void layout() {
getWidget().iLayout();
import com.vaadin.shared.EventId;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.optiongroup.OptionGroupConstants;
+import com.vaadin.shared.ui.optiongroup.OptionGroupState;
import com.vaadin.ui.OptionGroup;
@Connect(OptionGroup.class)
public VOptionGroup getWidget() {
return (VOptionGroup) super.getWidget();
}
+
+ @Override
+ public OptionGroupState getState() {
+ return (OptionGroupState) super.getState();
+ }
}
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.Connect.LoadStyle;
+import com.vaadin.shared.ui.orderedlayout.HorizontalLayoutState;
import com.vaadin.ui.HorizontalLayout;
/**
return (VHorizontalLayout) super.getWidget();
}
+ @Override
+ public HorizontalLayoutState getState() {
+ return (HorizontalLayoutState) super.getState();
+ }
+
}
*/
public class VHorizontalLayout extends VOrderedLayout {
- private static final String CLASSNAME = "v-horizontallayout";
+ public static final String CLASSNAME = "v-horizontallayout";
/**
* Default constructor
*/
public class VVerticalLayout extends VOrderedLayout {
- private static final String CLASSNAME = "v-verticallayout";
+ public static final String CLASSNAME = "v-verticallayout";
/**
* Default constructor
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.Connect.LoadStyle;
+import com.vaadin.shared.ui.orderedlayout.VerticalLayoutState;
import com.vaadin.ui.VerticalLayout;
/**
return (VVerticalLayout) super.getWidget();
}
+ @Override
+ public VerticalLayoutState getState() {
+ return (VerticalLayoutState) super.getState();
+ }
}
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.Connect.LoadStyle;
+import com.vaadin.shared.ui.splitpanel.HorizontalSplitPanelState;
import com.vaadin.ui.HorizontalSplitPanel;
@Connect(value = HorizontalSplitPanel.class, loadStyle = LoadStyle.EAGER)
return (VSplitPanelHorizontal) super.getWidget();
}
+ @Override
+ public HorizontalSplitPanelState getState() {
+ return (HorizontalSplitPanelState) super.getState();
+ }
+
}
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.Connect.LoadStyle;
+import com.vaadin.shared.ui.splitpanel.VerticalSplitPanelState;
import com.vaadin.ui.VerticalSplitPanel;
@Connect(value = VerticalSplitPanel.class, loadStyle = LoadStyle.EAGER)
return (VSplitPanelVertical) super.getWidget();
}
+ @Override
+ public VerticalSplitPanelState getState() {
+ return (VerticalSplitPanelState) super.getState();
+ }
+
}
import com.vaadin.client.ui.SimpleManagedLayout;
import com.vaadin.client.ui.layout.MayScrollChildren;
import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.tabsheet.TabsheetState;
import com.vaadin.ui.TabSheet;
@Connect(TabSheet.class)
return (VTabsheet) super.getWidget();
}
+ @Override
+ public TabsheetState getState() {
+ return (TabsheetState) super.getState();
+ }
+
@Override
public void updateCaption(ComponentConnector component) {
/* Tabsheet does not render its children's captions */
import com.vaadin.client.Util;
import com.vaadin.client.ui.AbstractComponentConnector;
import com.vaadin.client.ui.tree.VTree.TreeNode;
-import com.vaadin.shared.AbstractFieldState;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.MultiSelectMode;
import com.vaadin.shared.ui.tree.TreeConstants;
+import com.vaadin.shared.ui.tree.TreeState;
import com.vaadin.ui.Tree;
@Connect(Tree.class)
}
@Override
- public AbstractFieldState getState() {
- return (AbstractFieldState) super.getState();
+ public TreeState getState() {
+ return (TreeState) super.getState();
}
@Override
import com.vaadin.client.ui.treetable.VTreeTable.PendingNavigationEvent;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.treetable.TreeTableConstants;
+import com.vaadin.shared.ui.treetable.TreeTableState;
import com.vaadin.ui.TreeTable;
@Connect(TreeTable.class)
public VTreeTable getWidget() {
return (VTreeTable) super.getWidget();
}
+
+ @Override
+ public TreeTableState getState() {
+ return (TreeTableState) super.getState();
+ }
}
import com.vaadin.client.UIDL;
import com.vaadin.client.ui.optiongroup.OptionGroupBaseConnector;
import com.vaadin.shared.ui.Connect;
+import com.vaadin.shared.ui.twincolselect.TwinColSelectState;
import com.vaadin.ui.TwinColSelect;
@Connect(TwinColSelect.class)
return (VTwinColSelect) super.getWidget();
}
+ @Override
+ public TwinColSelectState getState() {
+ return (TwinColSelectState) super.getState();
+ }
+
@Override
public void layoutVertically() {
if (isUndefinedHeight()) {
public class VTwinColSelect extends VOptionGroupBase implements KeyDownHandler,
MouseDownHandler, DoubleClickHandler, SubPartAware {
- private static final String CLASSNAME = "v-select-twincol";
+ public static final String CLASSNAME = "v-select-twincol";
private static final int VISIBLE_COUNT = 10;
public class VVideo extends VMediaBase {
- private static String CLASSNAME = "v-video";
+ public static String CLASSNAME = "v-video";
private VideoElement video;
import java.util.HashMap;
import java.util.Map;
+import com.vaadin.client.ui.absolutelayout.VAbsoluteLayout;
import com.vaadin.shared.ui.AbstractLayoutState;
public class AbsoluteLayoutState extends AbstractLayoutState {
+ {
+ primaryStyleName = VAbsoluteLayout.CLASSNAME;
+ }
+
// Maps each component to a position
public Map<String, String> connectorToCssPosition = new HashMap<String, String>();
}
\ No newline at end of file
package com.vaadin.shared.ui.browserframe;
+import com.vaadin.client.ui.browserframe.VBrowserFrame;
import com.vaadin.shared.ui.AbstractEmbeddedState;
public class BrowserFrameState extends AbstractEmbeddedState {
-
+ {
+ primaryStyleName = VBrowserFrame.CLASSNAME;
+ }
}
package com.vaadin.shared.ui.button;
+import com.vaadin.client.ui.button.VButton;
import com.vaadin.shared.ComponentState;
import com.vaadin.shared.ui.TabIndexState;
* @since 7.0
*/
public class ButtonState extends TabIndexState {
+ {
+ primaryStyleName = VButton.CLASSNAME;
+ }
public boolean disableOnClick = false;
public int clickShortcutKeyCode = 0;
/**
*/
package com.vaadin.shared.ui.checkbox;
+import com.vaadin.client.ui.checkbox.VCheckBox;
import com.vaadin.shared.AbstractFieldState;
public class CheckBoxState extends AbstractFieldState {
- public boolean checked = false;
+ {
+ primaryStyleName = VCheckBox.CLASSNAME;
+ }
+ public boolean checked = false;
}
\ No newline at end of file
--- /dev/null
+package com.vaadin.shared.ui.combobox;
+
+import com.vaadin.client.ui.combobox.VFilterSelect;
+import com.vaadin.shared.AbstractFieldState;
+
+public class ComboBoxState extends AbstractFieldState {
+ {
+ primaryStyleName = VFilterSelect.CLASSNAME;
+ }
+}
import java.util.HashMap;
import java.util.Map;
+import com.vaadin.client.ui.csslayout.VCssLayout;
import com.vaadin.shared.Connector;
import com.vaadin.shared.ui.AbstractLayoutState;
public class CssLayoutState extends AbstractLayoutState {
+ {
+ primaryStyleName = VCssLayout.CLASSNAME;
+ }
public Map<Connector, String> childCss = new HashMap<Connector, String>();
}
\ No newline at end of file
import java.util.HashMap;
import java.util.Map;
+import com.vaadin.client.ui.customlayout.VCustomLayout;
import com.vaadin.shared.Connector;
import com.vaadin.shared.ui.AbstractLayoutState;
public class CustomLayoutState extends AbstractLayoutState {
+ {
+ primaryStyleName = VCustomLayout.CLASSNAME;
+ }
public Map<Connector, String> childLocations = new HashMap<Connector, String>();
public String templateContents;
public String templateName;
--- /dev/null
+package com.vaadin.shared.ui.datefield;
+
+import com.vaadin.client.ui.datefield.VDateFieldCalendar;
+import com.vaadin.shared.AbstractFieldState;
+
+public class InlineDateFieldState extends AbstractFieldState {
+ {
+ primaryStyleName = VDateFieldCalendar.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.datefield;
+
+import com.vaadin.client.ui.datefield.VPopupCalendar;
+
+public class PopupDateFieldState extends TextualDateFieldState {
+ {
+ primaryStyleName = VPopupCalendar.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.datefield;
+
+import com.vaadin.client.ui.datefield.VTextualDate;
+import com.vaadin.shared.AbstractFieldState;
+
+public class TextualDateFieldState extends AbstractFieldState {
+ {
+ primaryStyleName = VTextualDate.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.embedded;
+
+import com.vaadin.client.ui.embedded.VEmbedded;
+import com.vaadin.shared.ui.AbstractEmbeddedState;
+
+public class EmbeddedState extends AbstractEmbeddedState {
+ {
+ primaryStyleName = VEmbedded.CLASSNAME;
+ }
+}
import java.util.Map;
+import com.vaadin.client.ui.flash.VFlash;
import com.vaadin.shared.ui.AbstractEmbeddedState;
public class FlashState extends AbstractEmbeddedState {
+ {
+ primaryStyleName = VFlash.CLASSNAME;
+ }
public String classId;
*/
package com.vaadin.shared.ui.form;
+import com.vaadin.client.ui.form.VForm;
import com.vaadin.shared.AbstractFieldState;
import com.vaadin.shared.Connector;
public class FormState extends AbstractFieldState {
+ {
+ primaryStyleName = VForm.CLASSNAME;
+ }
public Connector layout;
public Connector footer;
}
\ No newline at end of file
*/
package com.vaadin.shared.ui.gridlayout;
+import com.vaadin.client.ui.gridlayout.VGridLayout;
import com.vaadin.shared.ui.AbstractLayoutState;
public class GridLayoutState extends AbstractLayoutState {
+ {
+ primaryStyleName = VGridLayout.CLASSNAME;
+ }
public boolean spacing = false;
public int rows = 0;
public int columns = 0;
package com.vaadin.shared.ui.image;
+import com.vaadin.client.ui.image.VImage;
import com.vaadin.shared.ui.AbstractEmbeddedState;
public class ImageState extends AbstractEmbeddedState {
-
+ {
+ primaryStyleName = VImage.CLASSNAME;
+ }
}
*/
package com.vaadin.shared.ui.label;
+import com.vaadin.client.ui.label.VLabel;
import com.vaadin.shared.ComponentState;
public class LabelState extends ComponentState {
+ {
+ primaryStyleName = VLabel.CLASSNAME;
+ }
public ContentMode contentMode = ContentMode.TEXT;
public String text = "";
}
--- /dev/null
+package com.vaadin.shared.ui.link;
+
+import com.vaadin.client.ui.link.VLink;
+import com.vaadin.shared.ComponentState;
+
+public class LinkState extends ComponentState {
+ {
+ primaryStyleName = VLink.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.menubar;
+
+import com.vaadin.client.ui.menubar.VMenuBar;
+import com.vaadin.shared.ComponentState;
+
+public class MenuBarState extends ComponentState {
+ {
+ primaryStyleName = VMenuBar.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.optiongroup;
+
+import com.vaadin.client.ui.optiongroup.VOptionGroup;
+import com.vaadin.shared.AbstractFieldState;
+
+public class OptionGroupState extends AbstractFieldState {
+ {
+ primaryStyleName = VOptionGroup.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.orderedlayout;
+
+import com.vaadin.client.ui.orderedlayout.VHorizontalLayout;
+
+public class HorizontalLayoutState extends AbstractOrderedLayoutState {
+ {
+ primaryStyleName = VHorizontalLayout.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.orderedlayout;
+
+import com.vaadin.client.ui.orderedlayout.VVerticalLayout;
+
+public class VerticalLayoutState extends AbstractOrderedLayoutState {
+ {
+ primaryStyleName = VVerticalLayout.CLASSNAME;
+ }
+}
*/
package com.vaadin.shared.ui.panel;
+import com.vaadin.client.ui.panel.VPanel;
import com.vaadin.shared.ComponentState;
public class PanelState extends ComponentState {
+ {
+ primaryStyleName = VPanel.CLASSNAME;
+ }
public int tabIndex;
public int scrollLeft, scrollTop;
}
\ No newline at end of file
package com.vaadin.shared.ui.slider;
+import com.vaadin.client.ui.slider.VSlider;
import com.vaadin.shared.AbstractFieldState;
public class SliderState extends AbstractFieldState {
+ {
+ primaryStyleName = VSlider.CLASSNAME;
+ }
public double value;
import com.vaadin.shared.Connector;
public class AbstractSplitPanelState extends ComponentState {
-
public Connector firstChild = null;
public Connector secondChild = null;
public SplitterState splitterState = new SplitterState();
--- /dev/null
+package com.vaadin.shared.ui.splitpanel;
+
+import com.vaadin.client.ui.splitpanel.VSplitPanelHorizontal;
+
+public class HorizontalSplitPanelState extends AbstractSplitPanelState {
+ {
+ primaryStyleName = VSplitPanelHorizontal.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.splitpanel;
+
+import com.vaadin.client.ui.splitpanel.VSplitPanelVertical;
+
+public class VerticalSplitPanelState extends AbstractSplitPanelState {
+ {
+ primaryStyleName = VSplitPanelVertical.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.tabsheet;
+
+import com.vaadin.client.ui.tabsheet.VTabsheet;
+import com.vaadin.shared.ComponentState;
+
+public class TabsheetState extends ComponentState {
+ {
+ primaryStyleName = VTabsheet.CLASSNAME;
+ }
+}
*/
package com.vaadin.shared.ui.textarea;
+import com.vaadin.client.ui.textarea.VTextArea;
import com.vaadin.shared.annotations.DelegateToWidget;
import com.vaadin.shared.ui.textfield.AbstractTextFieldState;
public class TextAreaState extends AbstractTextFieldState {
+ {
+ primaryStyleName = VTextArea.CLASSNAME;
+ }
/**
* Number of visible rows in the text area. The default is 5.
*/
package com.vaadin.shared.ui.textfield;
+import com.vaadin.client.ui.textfield.VTextField;
import com.vaadin.shared.AbstractFieldState;
public class AbstractTextFieldState extends AbstractFieldState {
+ {
+ primaryStyleName = VTextField.CLASSNAME;
+ }
+
/**
* Maximum character count in text field.
*/
--- /dev/null
+package com.vaadin.shared.ui.tree;
+
+import com.vaadin.client.ui.tree.VTree;
+import com.vaadin.shared.AbstractFieldState;
+
+public class TreeState extends AbstractFieldState {
+ {
+ primaryStyleName = VTree.CLASSNAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.treetable;
+
+import com.vaadin.client.ui.treetable.VTreeTable;
+import com.vaadin.shared.ui.table.TableState;
+
+public class TreeTableState extends TableState {
+ {
+ primaryStyleName = VTreeTable.STYLENAME;
+ }
+}
--- /dev/null
+package com.vaadin.shared.ui.twincolselect;
+
+import com.vaadin.client.ui.twincolselect.VTwinColSelect;
+import com.vaadin.shared.AbstractFieldState;
+
+public class TwinColSelectState extends AbstractFieldState {
+ {
+ primaryStyleName = VTwinColSelect.CLASSNAME;
+ }
+}
*/
package com.vaadin.shared.ui.video;
+import com.vaadin.client.ui.video.VVideo;
import com.vaadin.shared.ui.AbstractMediaState;
public class VideoState extends AbstractMediaState {
-
+ {
+ primaryStyleName = VVideo.CLASSNAME;
+ }
}