public ITreeRowSource getTreeRowSource() { ITreeRowSource objSource = (ITreeRowSource) getPage().getRequestCycle() .getAttribute(ITreeRowSource.TREE_ROW_SOURCE_ATTRIBUTE); return objSource; }
public ITreeModelSource getTreeModelSource() { ITreeModelSource objSource = (ITreeModelSource) getPage() .getRequestCycle().getAttribute( ITreeModelSource.TREE_MODEL_SOURCE_ATTRIBUTE); return objSource; }
public Page getSiteMeshPage() { return Util.getPage(getPage().getRequestCycle()); } }
public ITreeModelSource getTreeModelSource() { ITreeModelSource objSource = (ITreeModelSource) getPage() .getRequestCycle().getAttribute( ITreeModelSource.TREE_MODEL_SOURCE_ATTRIBUTE); return objSource == null ? getTreeViewParameter() : objSource; }
public boolean getShowNormalPages() { if (getVolatile()) return true; IForm form = (IForm) getPage().getRequestCycle().getAttribute( TapestryUtils.FORM_ATTRIBUTE); return (form == null); }
protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
/** * Overriden from {@link AbstractFormComponent} to handle cases where * we're not being wrapped by a {@link IForm} component. * * <p>This is basically a copy of the same method implemented in {@link AbstractComponent}.</p> */ protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
/** * Overriden from {@link AbstractFormComponent} to handle cases where * we're not being wrapped by a {@link IForm} component. * * <p>This is basically a copy of the same method implemented in {@link AbstractComponent}.</p> */ protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
protected void generateClientId() { String id = getSpecifiedId(); if (id != null && getPage() != null && getPage().getRequestCycle() != null) setClientId(getPage().getRequestCycle().getUniqueId(TapestryUtils.convertTapestryIdToNMToken(id))); }
/** * {@inheritDoc} */ public String peekClientId() { if (getPage() == null) return null; IForm form = (IForm) getPage().getRequestCycle().getAttribute(TapestryUtils.FORM_ATTRIBUTE); if (form == null) return null; return form.peekClientId(this); }
/** * {@inheritDoc} */ public String peekClientId() { if (getPage() == null) return null; IForm form = (IForm) getPage().getRequestCycle().getAttribute(TapestryUtils.FORM_ATTRIBUTE); if (form == null) return null; return form.peekClientId(this); }
/** * Returns the renderer to be used to generate the header of the current * column. * * @return the header renderer of the current column */ public IRender getTableColumnRenderer() { return getTableColumn().getColumnRenderer(getPage().getRequestCycle(), getTableModelSource()); }
/** * {@inheritDoc} */ public String peekClientId() { if (getPage() == null) return null; String id = getSpecifiedId(); if (id == null) return null; return getPage().getRequestCycle().peekUniqueId(TapestryUtils.convertTapestryIdToNMToken(id)); }
public CheckboxGroup getCheckboxGroup() { CheckboxGroup group = getGroup(); if (group == null) { IRequestCycle cycle = getPage().getRequestCycle(); group = (CheckboxGroup) cycle.getAttribute(CheckboxGroup.CHECKBOX_GROUP_ATTRIBUTE); } if (group == null) throw new ApplicationRuntimeException("The component " + getExtendedId() + " must be wrapped by a CheckboxGroup or the 'group' parameter must be set."); return group; }
/** * {@inheritDoc} */ public String peekClientId() { if (getPage() == null) return null; String id = getSpecifiedId(); if (id == null) return null; return getPage().getRequestCycle().peekUniqueId(TapestryUtils.convertTapestryIdToNMToken(id)); }
public BeanProvider(IComponent component) { _component = component; Infrastructure infrastructure = component.getPage().getRequestCycle().getInfrastructure(); _resolver = infrastructure.getClassResolver(); INamespace namespace = component.getNamespace(); _packageList = namespace.getPropertyValue("org.apache.tapestry.bean-class-packages"); _classFinder = infrastructure.getClassFinder(); }
public BeanProvider(IComponent component) { _component = component; Infrastructure infrastructure = component.getPage().getRequestCycle().getInfrastructure(); _resolver = infrastructure.getClassResolver(); INamespace namespace = component.getNamespace(); _packageList = namespace.getPropertyValue("org.apache.tapestry.bean-class-packages"); _classFinder = infrastructure.getClassFinder(); }
public IRender getCurrentRenderer() { INodeRenderFactory objRenderFactory = getNodeRenderFactory(); ITreeRowSource objTreeRowSource = getTreeRowSource(); return objRenderFactory.getRender(objTreeRowSource.getTreeRow() .getTreeNode(), getTreeModelSource(), getPage() .getRequestCycle()); }