@MetaProperty @Override public UUID getId() { return id; }
@MetaClass(name = "dashboard$VerticalLayout") public class VerticalLayout extends DashboardLayout implements ContainerLayout { @Override public String getCaption() { Messages messages = AppBeans.get(Messages.class); return messages.getMessage(getClass(), "Layout.vertical"); } }
@MetaClass(name = "dashboard$CssLayout") public class CssLayout extends DashboardLayout implements ContainerLayout { @MetaProperty protected Boolean responsive; @Override public String getCaption() { Messages messages = AppBeans.get(Messages.class); return messages.getMessage(getClass(), "Layout.css"); } public Boolean getResponsive() { return responsive; } public void setResponsive(Boolean responsive) { this.responsive = responsive; } }
/** * @return locked object id */ @MetaProperty public String getEntityId() { return entityId; }
@MetaClass(name = "dashboard$WidgetTemplateLayout") public class WidgetTemplateLayout extends WidgetLayout { @Override public String getCaption() { if (widget != null) { return widget.getCaption(); } return StringUtils.EMPTY; } }
@MetaProperty public boolean isDeniedAll() { return (createPermissionVariant == PermissionVariant.DISALLOWED) && (readPermissionVariant == PermissionVariant.DISALLOWED) && (updatePermissionVariant == PermissionVariant.DISALLOWED) && (deletePermissionVariant == PermissionVariant.DISALLOWED); }
@MetaClass(name = "dashboard$RootLayout") public class RootLayout extends VerticalLayout { @Override public boolean isRoot() { return true; } @Override public String getCaption() { Messages messages = AppBeans.get(Messages.class); return messages.getMessage(getClass(), "Layout.root"); } }
/** * @return when the lock occurred */ @MetaProperty public Date getSince() { return since; }
@MetaClass(name = "dashboard$HorizontalLayout") public class HorizontalLayout extends DashboardLayout implements ContainerLayout { @Override public String getCaption() { Messages messages = AppBeans.get(Messages.class); return messages.getMessage(getClass(), "Layout.horizontal"); } }
@MetaProperty public String name() { if (beanName != null && methodName != null) { return beanName + "." + methodName; } else if (className != null) { return className; } else { return scriptName; } }
/** * @return locked object type */ @MetaProperty public String getEntityName() { return entityName; }
@MetaProperty(related = "snapshotDate") public Date getChangeDate() { return this.snapshotDate; }
/** * @return a user which holds the lock */ @MetaProperty public User getUser() { return user; }
@Override @MetaProperty public boolean isAssigned() { return (createPermissionVariant != PermissionVariant.NOTSET) || (readPermissionVariant != PermissionVariant.NOTSET) || (updatePermissionVariant != PermissionVariant.NOTSET) || (deletePermissionVariant != PermissionVariant.NOTSET); }
@MetaProperty public boolean isAllowedAll() { return (createPermissionVariant == PermissionVariant.ALLOWED) && (readPermissionVariant == PermissionVariant.ALLOWED) && (updatePermissionVariant == PermissionVariant.ALLOWED) && (deletePermissionVariant == PermissionVariant.ALLOWED); }
@MetaProperty public void setLabel(String label) { this.label = label; }
@MetaProperty public String getAfterString() { return ""; }
@MetaProperty public String getName() { return propertyCaption; }
@MetaProperty public String getBeforeString() { return ""; }
@MetaProperty public ItemState getItemState() { return ItemState.Normal; }