/** * Gets the caption for this button. * <p> * If the caption is explicitly set, it will be used - otherwise the caption * is fetched from the target view, if one is set. * </p> * * @see com.vaadin.ui.AbstractComponent#getCaption() * * @return the caption */ @Override public String getCaption() { return super.getCaption(); }
public Collection<AbstractComponent> getFields() { if (logger.isDebugEnabled()) { logger.debug("fetching registered fields for MaduraSessionManager {}", getValidationEngine().getIdentifier()); for (Entry<Integer,AbstractComponent> entry: m_fields.entrySet()) { logger.debug("{}={}",entry.getKey(),entry.getValue().getCaption()); } logger.debug("--------"); } return Collections.unmodifiableCollection(m_fields.values()); } private Collection<Label> getLabels() {
public void doUpdate(DataConnector data) throws MException { if (data.getTaskName().equals(DataSource.CONNECTOR_TASK_TITLE)) { String arg = data.getString((String)label.getCaption()); if (equals(arg,label.getCaption())) return; label.setCaption(arg); return; } if (data.getTaskName().equals(DataSource.CONNECTOR_TASK_ERROR)) { String msg = data.getString(""); setErrorMessage(msg); return; } }
validationError = new UserError(field.getCaption()); validationError = new UserError(field.getCaption()); break;
@Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); // Steal caption from target view if not explicitly defined String caption = getState().caption; AbstractComponent targetView = (AbstractComponent) getState() .getTargetView(); String targetViewCaption = getState().getTargetViewCaption(); if (caption == null) { caption = targetViewCaption; if (caption == null && targetView != null) { caption = targetView.getCaption(); } } getState().caption = caption; if (getState().getTargetViewCaption() == null) { if (targetView == null) { getState().setTargetViewCaption(caption); } } }