List of usage examples for com.vaadin.client UIDL getStringAttribute
public String getStringAttribute(String name)
From source file:org.vaadin.tltv.multiscrolltable.client.ui.RowHeaderContainer.java
License:Apache License
@Override public Row createRow(int rowIndex, UIDL rowUidl) { Row row = getRow(rowIndex);/*from w ww.j a v a 2 s . c om*/ Cell cell = getCell(0, row); cell.setValue(rowUidl.getStringAttribute(VCustomScrollTable.ATTR_CAPTION)); return row; }
From source file:org.vaadin.ui.client.numberfield.NumberFieldConnector.java
License:Apache License
private void processAttributesFromServer(UIDL uidl) { if (uidl.hasAttribute(Constants.ATTRIBUTE_ALLOW_NEGATIVES)) { getWidget().attributes/*from w w w .j ava2 s.c om*/ .setNegativeAllowed(uidl.getBooleanAttribute(Constants.ATTRIBUTE_ALLOW_NEGATIVES)); } if (uidl.hasAttribute(Constants.ATTRIBUTE_DECIMAL_PRECISION)) { getWidget().attributes.setDecimalPrecision(uidl.getIntAttribute(Constants.ATTRIBUTE_DECIMAL_PRECISION)); } if (uidl.hasAttribute(Constants.ATTRIBUTE_MIN_VALUE)) { getWidget().attributes.setMinValue(uidl.getDoubleAttribute(Constants.ATTRIBUTE_MIN_VALUE)); } if (uidl.hasAttribute(Constants.ATTRIBUTE_MAX_VALUE)) { getWidget().attributes.setMaxValue(uidl.getDoubleAttribute(Constants.ATTRIBUTE_MAX_VALUE)); } if (uidl.hasAttribute(Constants.ATTRIBUTE_ALLOW_DECIMALS)) { getWidget().attributes.setDecimalAllowed(uidl.getBooleanAttribute(Constants.ATTRIBUTE_ALLOW_DECIMALS)); } if (uidl.hasAttribute(Constants.ATTRIBUTE_DECIMAL_SEPARATOR)) { getWidget().attributes .setDecimalSeparator((char) uidl.getIntAttribute(Constants.ATTRIBUTE_DECIMAL_SEPARATOR)); } if (uidl.hasAttribute(Constants.ATTRIBUTE_USE_GROUPING)) { getWidget().attributes.setGroupingUsed(uidl.getBooleanAttribute(Constants.ATTRIBUTE_USE_GROUPING)); } if (uidl.hasAttribute(Constants.ATTRIBUTE_GROUPING_SEPARATOR)) { getWidget().attributes .setGroupingSeparator((char) uidl.getIntAttribute(Constants.ATTRIBUTE_GROUPING_SEPARATOR)); } if (uidl.hasAttribute(Constants.ATTRIBUTE_SERVER_FORMATTED_VALUE)) { getWidget().setValue(uidl.getStringAttribute(Constants.ATTRIBUTE_SERVER_FORMATTED_VALUE)); } }