View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

ERP/3.0/Developers Guide/Reference/Entity Model/OBKMO WidgetClass

This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Back button.png   Back to ERP/3.0/Developers_Guide/Reference/Entity_Model#OBKMO_WidgetClass


OBKMO_WidgetClass

To the database table (OBKMO_Widget_Class) of this entity.

Properties

Note:

Property Column Constraints Type Description
id* OBKMO_Widget_Class_ID Mandatory
Max Length: 32
java.lang.String Identifies a widget class definition
client AD_Client_ID Mandatory
ADClient A Client is a company or a legal entity. You cannot share data between Clients.
organization AD_Org_ID Mandatory
Organization An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
active Isactive Mandatory
java.lang.Boolean There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:

(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.

creationDate Created Mandatory
java.util.Date The Created field indicates the date that this record was created.
createdBy Createdby Mandatory
ADUser The Created By field indicates the user who created this record.
updated Updated Mandatory
java.util.Date The Updated field indicates the date that this record was updated.
updatedBy Updatedby Mandatory
ADUser The Updated By field indicates the user who updated this record.
module AD_Module_ID Mandatory
ADModule Indicates the module the element forms part of.
widgetTitle# Title Mandatory
Max Length: 60
java.lang.String Widget Title is the text that is shown in the widget bar at Workspace tab.
javaClass Javaclass Max Length: 255
java.lang.String Java Class implementing the widget
height Height Mandatory
Min: 20
java.lang.Long Height in pixels the widget will be represented with.
description Description Max Length: 255
java.lang.String A description is limited to 255 characters.
allowAnonymousAccess Allow_Anonymous_Access Mandatory
java.lang.Boolean Determines that the widget class will be available to all users regardless of the roles with access to this class.
superclass IsSuperclass Mandatory
java.lang.Boolean A Superclass widget is an implementation that can be used by other widget classes so it is not necessary to develop the java class.
widgetSuperclass Widget_Superclass_ID OBKMO_WidgetClass Identifies the Superclass widget used by this widget class.
canMaximize CAN_Maximize Mandatory
java.lang.Boolean When is true, the maximize button appears in the widget's header toolbar, next to the menu options
dataAccessLevel Accesslevel Mandatory
Max Length: 60
java.lang.String Indicates what type of data (in terms of AD_CLIENT and AD_ORG data columns) can be entered or viewed. We can classify data in 4 major categories:

- System (AD_CLIENT_ID=0, AD_ORG_ID=0) - system data (such as metadata for window, tab and field definition) - Organization (AD_CLIENT<>0, AD_ORG_ID<>0) - data particular to an organization (such as sales orders) - Client/Organization (AD_CLIENT<>0, AD_ORG_ID=anything) - data particular to an organization or shared among all organizations within one client - Client (AD_CLIENT<>0, AD_ORG_ID=0) - data that is specific to a client but can be used by all organizations within that client

or All (AD_CLIENT=anything, AD_ORG_ID=anything)

authorMsg Author_Msg Max Length: 255
java.lang.String It is a message the widget author can define. It will be shown in the widget about information.
authorUrl Author_Url Max Length: 2000
java.lang.String It is the widget author URL which will be shown in the widget about information box.
availableInWorkspace Available_In_Workspace Mandatory
java.lang.Boolean When this field is checked, the widget will be available in the "Add Widget" drop down menu to include it in the workspace.
oBCQLWidgetQueryList OBCQL_WidgetQuery
oBKMOWidgetClassWidgetSuperclassList OBKMO_WidgetClass
oBKMOWidgetClassAccessList OBKMO_WidgetClassAccess
oBKMOWidgetClassMenuList OBKMO_WidgetClassMenu
oBKMOWidgetClassTrlList OBKMO_WidgetClassTrl
oBKMOWidgetInstanceList OBKMO_WidgetInstance
oBKMOWidgetListList OBKMO_WidgetList
oBKMOWidgetReferenceList OBKMO_WidgetReference
oBKMOWidgetURLList OBKMO_WidgetURL
oBUIAPPParameterEMObkmoWidgetClassIDList OBUIAPP_Parameter


Java Entity Class

 
 
 /*
  *************************************************************************
  * The contents of this file are subject to the Openbravo  Public  License
  * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
  * Version 1.1  with a permitted attribution clause; you may not  use this
  * file except in compliance with the License. You  may  obtain  a copy of
  * the License at http://www.openbravo.com/legal/license.html
  * Software distributed under the License  is  distributed  on  an "AS IS"
  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  * License for the specific  language  governing  rights  and  limitations
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
  * All portions are Copyright (C) 2008-2014 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
 */
 package org.openbravo.client.myob;
 
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 
 import org.openbravo.base.structure.ActiveEnabled;
 import org.openbravo.base.structure.BaseOBObject;
 import org.openbravo.base.structure.ClientEnabled;
 import org.openbravo.base.structure.OrganizationEnabled;
 import org.openbravo.base.structure.Traceable;
 import org.openbravo.client.application.Parameter;
 import org.openbravo.client.querylist.OBCQL_WidgetQuery;
 import org.openbravo.model.ad.access.User;
 import org.openbravo.model.ad.module.Module;
 import org.openbravo.model.ad.system.Client;
 import org.openbravo.model.common.enterprise.Organization;
 /**
  * Entity class for entity OBKMO_WidgetClass (stored in table OBKMO_Widget_Class).
  *
  * NOTE: This class should not be instantiated directly. To instantiate this
  * class the {@link org.openbravo.base.provider.OBProvider} should be used.
  */
 public class WidgetClass extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
     private static final long serialVersionUID = 1L;
     public static final String TABLE_NAME = "OBKMO_Widget_Class";
     public static final String ENTITY_NAME = "OBKMO_WidgetClass";
     public static final String PROPERTY_ID = "id";
     public static final String PROPERTY_CLIENT = "client";
     public static final String PROPERTY_ORGANIZATION = "organization";
     public static final String PROPERTY_ACTIVE = "active";
     public static final String PROPERTY_CREATIONDATE = "creationDate";
     public static final String PROPERTY_CREATEDBY = "createdBy";
     public static final String PROPERTY_UPDATED = "updated";
     public static final String PROPERTY_UPDATEDBY = "updatedBy";
     public static final String PROPERTY_MODULE = "module";
     public static final String PROPERTY_WIDGETTITLE = "widgetTitle";
     public static final String PROPERTY_JAVACLASS = "javaClass";
     public static final String PROPERTY_HEIGHT = "height";
     public static final String PROPERTY_DESCRIPTION = "description";
     public static final String PROPERTY_ALLOWANONYMOUSACCESS = "allowAnonymousAccess";
     public static final String PROPERTY_SUPERCLASS = "superclass";
     public static final String PROPERTY_WIDGETSUPERCLASS = "widgetSuperclass";
     public static final String PROPERTY_CANMAXIMIZE = "canMaximize";
     public static final String PROPERTY_DATAACCESSLEVEL = "dataAccessLevel";
     public static final String PROPERTY_AUTHORMSG = "authorMsg";
     public static final String PROPERTY_AUTHORURL = "authorUrl";
     public static final String PROPERTY_AVAILABLEINWORKSPACE = "availableInWorkspace";
     public static final String PROPERTY_OBCQLWIDGETQUERYLIST = "oBCQLWidgetQueryList";
     public static final String PROPERTY_OBKMOWIDGETCLASSWIDGETSUPERCLASSLIST = "oBKMOWidgetClassWidgetSuperclassList";
     public static final String PROPERTY_OBKMOWIDGETCLASSACCESSLIST = "oBKMOWidgetClassAccessList";
     public static final String PROPERTY_OBKMOWIDGETCLASSMENULIST = "oBKMOWidgetClassMenuList";
     public static final String PROPERTY_OBKMOWIDGETCLASSTRLLIST = "oBKMOWidgetClassTrlList";
     public static final String PROPERTY_OBKMOWIDGETINSTANCELIST = "oBKMOWidgetInstanceList";
     public static final String PROPERTY_OBKMOWIDGETLISTLIST = "oBKMOWidgetListList";
     public static final String PROPERTY_OBKMOWIDGETREFERENCELIST = "oBKMOWidgetReferenceList";
     public static final String PROPERTY_OBKMOWIDGETURLLIST = "oBKMOWidgetURLList";
     public static final String PROPERTY_OBUIAPPPARAMETEREMOBKMOWIDGETCLASSIDLIST = "oBUIAPPParameterEMObkmoWidgetClassIDList";
 
     public WidgetClass() {
         setDefaultValue(PROPERTY_ACTIVE, true);
         setDefaultValue(PROPERTY_CREATIONDATE, new Date());
         setDefaultValue(PROPERTY_UPDATED, new Date());
         setDefaultValue(PROPERTY_HEIGHT, (long) 300);
         setDefaultValue(PROPERTY_ALLOWANONYMOUSACCESS, false);
         setDefaultValue(PROPERTY_SUPERCLASS, false);
         setDefaultValue(PROPERTY_CANMAXIMIZE, false);
         setDefaultValue(PROPERTY_DATAACCESSLEVEL, "3");
         setDefaultValue(PROPERTY_AVAILABLEINWORKSPACE, true);
         setDefaultValue(PROPERTY_OBCQLWIDGETQUERYLIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_OBKMOWIDGETCLASSWIDGETSUPERCLASSLIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_OBKMOWIDGETCLASSACCESSLIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_OBKMOWIDGETCLASSMENULIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_OBKMOWIDGETCLASSTRLLIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_OBKMOWIDGETINSTANCELIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_OBKMOWIDGETLISTLIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_OBKMOWIDGETREFERENCELIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_OBKMOWIDGETURLLIST, new ArrayList<Object>());
         setDefaultValue(PROPERTY_OBUIAPPPARAMETEREMOBKMOWIDGETCLASSIDLIST, new ArrayList<Object>());
     }
 
     @Override
     public String getEntityName() {
         return ENTITY_NAME;
     }
 
     public String getId() {
         return (String) get(PROPERTY_ID);
     }
 
     public void setId(String id) {
         set(PROPERTY_ID, id);
     }
 
     public Client getClient() {
         return (Client) get(PROPERTY_CLIENT);
     }
 
     public void setClient(Client client) {
         set(PROPERTY_CLIENT, client);
     }
 
     public Organization getOrganization() {
         return (Organization) get(PROPERTY_ORGANIZATION);
     }
 
     public void setOrganization(Organization organization) {
         set(PROPERTY_ORGANIZATION, organization);
     }
 
     public Boolean isActive() {
         return (Boolean) get(PROPERTY_ACTIVE);
     }
 
     public void setActive(Boolean active) {
         set(PROPERTY_ACTIVE, active);
     }
 
     public Date getCreationDate() {
         return (Date) get(PROPERTY_CREATIONDATE);
     }
 
     public void setCreationDate(Date creationDate) {
         set(PROPERTY_CREATIONDATE, creationDate);
     }
 
     public User getCreatedBy() {
         return (User) get(PROPERTY_CREATEDBY);
     }
 
     public void setCreatedBy(User createdBy) {
         set(PROPERTY_CREATEDBY, createdBy);
     }
 
     public Date getUpdated() {
         return (Date) get(PROPERTY_UPDATED);
     }
 
     public void setUpdated(Date updated) {
         set(PROPERTY_UPDATED, updated);
     }
 
     public User getUpdatedBy() {
         return (User) get(PROPERTY_UPDATEDBY);
     }
 
     public void setUpdatedBy(User updatedBy) {
         set(PROPERTY_UPDATEDBY, updatedBy);
     }
 
     public Module getModule() {
         return (Module) get(PROPERTY_MODULE);
     }
 
     public void setModule(Module module) {
         set(PROPERTY_MODULE, module);
     }
 
     public String getWidgetTitle() {
         return (String) get(PROPERTY_WIDGETTITLE);
     }
 
     public void setWidgetTitle(String widgetTitle) {
         set(PROPERTY_WIDGETTITLE, widgetTitle);
     }
 
     public String getJavaClass() {
         return (String) get(PROPERTY_JAVACLASS);
     }
 
     public void setJavaClass(String javaClass) {
         set(PROPERTY_JAVACLASS, javaClass);
     }
 
     public Long getHeight() {
         return (Long) get(PROPERTY_HEIGHT);
     }
 
     public void setHeight(Long height) {
         set(PROPERTY_HEIGHT, height);
     }
 
     public String getDescription() {
         return (String) get(PROPERTY_DESCRIPTION);
     }
 
     public void setDescription(String description) {
         set(PROPERTY_DESCRIPTION, description);
     }
 
     public Boolean isAllowAnonymousAccess() {
         return (Boolean) get(PROPERTY_ALLOWANONYMOUSACCESS);
     }
 
     public void setAllowAnonymousAccess(Boolean allowAnonymousAccess) {
         set(PROPERTY_ALLOWANONYMOUSACCESS, allowAnonymousAccess);
     }
 
     public Boolean isSuperclass() {
         return (Boolean) get(PROPERTY_SUPERCLASS);
     }
 
     public void setSuperclass(Boolean superclass) {
         set(PROPERTY_SUPERCLASS, superclass);
     }
 
     public WidgetClass getWidgetSuperclass() {
         return (WidgetClass) get(PROPERTY_WIDGETSUPERCLASS);
     }
 
     public void setWidgetSuperclass(WidgetClass widgetSuperclass) {
         set(PROPERTY_WIDGETSUPERCLASS, widgetSuperclass);
     }
 
     public Boolean isCanMaximize() {
         return (Boolean) get(PROPERTY_CANMAXIMIZE);
     }
 
     public void setCanMaximize(Boolean canMaximize) {
         set(PROPERTY_CANMAXIMIZE, canMaximize);
     }
 
     public String getDataAccessLevel() {
         return (String) get(PROPERTY_DATAACCESSLEVEL);
     }
 
     public void setDataAccessLevel(String dataAccessLevel) {
         set(PROPERTY_DATAACCESSLEVEL, dataAccessLevel);
     }
 
     public String getAuthorMsg() {
         return (String) get(PROPERTY_AUTHORMSG);
     }
 
     public void setAuthorMsg(String authorMsg) {
         set(PROPERTY_AUTHORMSG, authorMsg);
     }
 
     public String getAuthorUrl() {
         return (String) get(PROPERTY_AUTHORURL);
     }
 
     public void setAuthorUrl(String authorUrl) {
         set(PROPERTY_AUTHORURL, authorUrl);
     }
 
     public Boolean isAvailableInWorkspace() {
         return (Boolean) get(PROPERTY_AVAILABLEINWORKSPACE);
     }
 
     public void setAvailableInWorkspace(Boolean availableInWorkspace) {
         set(PROPERTY_AVAILABLEINWORKSPACE, availableInWorkspace);
     }
 
     @SuppressWarnings("unchecked")
     public List<OBCQL_WidgetQuery> getOBCQLWidgetQueryList() {
       return (List<OBCQL_WidgetQuery>) get(PROPERTY_OBCQLWIDGETQUERYLIST);
     }
 
     public void setOBCQLWidgetQueryList(List<OBCQL_WidgetQuery> oBCQLWidgetQueryList) {
         set(PROPERTY_OBCQLWIDGETQUERYLIST, oBCQLWidgetQueryList);
     }
 
     @SuppressWarnings("unchecked")
     public List<WidgetClass> getOBKMOWidgetClassWidgetSuperclassList() {
       return (List<WidgetClass>) get(PROPERTY_OBKMOWIDGETCLASSWIDGETSUPERCLASSLIST);
     }
 
     public void setOBKMOWidgetClassWidgetSuperclassList(List<WidgetClass> oBKMOWidgetClassWidgetSuperclassList) {
         set(PROPERTY_OBKMOWIDGETCLASSWIDGETSUPERCLASSLIST, oBKMOWidgetClassWidgetSuperclassList);
     }
 
     @SuppressWarnings("unchecked")
     public List<WidgetClassAccess> getOBKMOWidgetClassAccessList() {
       return (List<WidgetClassAccess>) get(PROPERTY_OBKMOWIDGETCLASSACCESSLIST);
     }
 
     public void setOBKMOWidgetClassAccessList(List<WidgetClassAccess> oBKMOWidgetClassAccessList) {
         set(PROPERTY_OBKMOWIDGETCLASSACCESSLIST, oBKMOWidgetClassAccessList);
     }
 
     @SuppressWarnings("unchecked")
     public List<WidgetClassMenu> getOBKMOWidgetClassMenuList() {
       return (List<WidgetClassMenu>) get(PROPERTY_OBKMOWIDGETCLASSMENULIST);
     }
 
     public void setOBKMOWidgetClassMenuList(List<WidgetClassMenu> oBKMOWidgetClassMenuList) {
         set(PROPERTY_OBKMOWIDGETCLASSMENULIST, oBKMOWidgetClassMenuList);
     }
 
     @SuppressWarnings("unchecked")
     public List<WidgetClassTrl> getOBKMOWidgetClassTrlList() {
       return (List<WidgetClassTrl>) get(PROPERTY_OBKMOWIDGETCLASSTRLLIST);
     }
 
     public void setOBKMOWidgetClassTrlList(List<WidgetClassTrl> oBKMOWidgetClassTrlList) {
         set(PROPERTY_OBKMOWIDGETCLASSTRLLIST, oBKMOWidgetClassTrlList);
     }
 
     @SuppressWarnings("unchecked")
     public List<WidgetInstance> getOBKMOWidgetInstanceList() {
       return (List<WidgetInstance>) get(PROPERTY_OBKMOWIDGETINSTANCELIST);
     }
 
     public void setOBKMOWidgetInstanceList(List<WidgetInstance> oBKMOWidgetInstanceList) {
         set(PROPERTY_OBKMOWIDGETINSTANCELIST, oBKMOWidgetInstanceList);
     }
 
     @SuppressWarnings("unchecked")
     public List<WidgetList> getOBKMOWidgetListList() {
       return (List<WidgetList>) get(PROPERTY_OBKMOWIDGETLISTLIST);
     }
 
     public void setOBKMOWidgetListList(List<WidgetList> oBKMOWidgetListList) {
         set(PROPERTY_OBKMOWIDGETLISTLIST, oBKMOWidgetListList);
     }
 
     @SuppressWarnings("unchecked")
     public List<WidgetReference> getOBKMOWidgetReferenceList() {
       return (List<WidgetReference>) get(PROPERTY_OBKMOWIDGETREFERENCELIST);
     }
 
     public void setOBKMOWidgetReferenceList(List<WidgetReference> oBKMOWidgetReferenceList) {
         set(PROPERTY_OBKMOWIDGETREFERENCELIST, oBKMOWidgetReferenceList);
     }
 
     @SuppressWarnings("unchecked")
     public List<WidgetURL> getOBKMOWidgetURLList() {
       return (List<WidgetURL>) get(PROPERTY_OBKMOWIDGETURLLIST);
     }
 
     public void setOBKMOWidgetURLList(List<WidgetURL> oBKMOWidgetURLList) {
         set(PROPERTY_OBKMOWIDGETURLLIST, oBKMOWidgetURLList);
     }
 
     @SuppressWarnings("unchecked")
     public List<Parameter> getOBUIAPPParameterEMObkmoWidgetClassIDList() {
       return (List<Parameter>) get(PROPERTY_OBUIAPPPARAMETEREMOBKMOWIDGETCLASSIDLIST);
     }
 
     public void setOBUIAPPParameterEMObkmoWidgetClassIDList(List<Parameter> oBUIAPPParameterEMObkmoWidgetClassIDList) {
         set(PROPERTY_OBUIAPPPARAMETEREMOBKMOWIDGETCLASSIDLIST, oBUIAPPParameterEMObkmoWidgetClassIDList);
     }
 
 }

Retrieved from "http://wiki.openbravo.com/wiki/ERP/3.0/Developers_Guide/Reference/Entity_Model/OBKMO_WidgetClass"

This page has been accessed 669 times. This page was last modified on 1 July 2016, at 06:23. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.