コード例 #1
0
 public PortletObject(
     long tabId, int column, int row, PortletObjectRef ref, boolean flag, boolean skin) {
   this();
   this.tabId = tabId;
   this.column = column;
   this.row = row;
   this.label = ref.getLabel();
   this.icon = ref.getIcon();
   this.iconCssSprite = ref.getIconCssSprite();
   this.url = ref.getUrl();
   this.name = ref.getName();
   this.path = ref.getPath();
   this.closeable = flag ? 1 : 0;
   this.refreshMode = ref.getRefreshMode();
   this.editMode = flag ? ref.getEditMode() : 0;
   this.helpMode = flag ? ref.getHelpMode() : 0;
   this.configMode = flag ? ref.getConfigMode() : 0;
   this.minimized = ref.getMinimized();
   this.maximized = ref.getMaximized();
   if (skin) this.windowSkin = ref.getWindowSkin();
   this.autoRefreshed = ref.getAutoRefreshed();
   this.periodTime = ref.getPeriodTime();
   this.showNumber = ref.getShowNumber();
   this.showType = ref.getShowType();
   this.windowStatus = ref.getWindowStatus();
   this.mode = ref.getMode();
   this.type = ref.getType();
   this.pageRefreshed = ref.getPageRefreshed();
   this.allowJS = ref.getAllowJS();
   this.parameter = ref.getParameter();
 }
コード例 #2
0
 public PortletObject(
     long tabId,
     int column,
     int row,
     boolean notCloseable,
     boolean noEditMode,
     boolean noConfigMode,
     String barBgColor,
     String barFontColor,
     String contentBgColor,
     PortletObjectRef ref) {
   this();
   this.tabId = tabId;
   this.column = column;
   this.row = row;
   if (!notCloseable) this.closeable = 1;
   if (barBgColor != null) this.barBgColor = barBgColor;
   if (barFontColor != null) this.barFontColor = barFontColor;
   if (contentBgColor != null) this.contentBgColor = contentBgColor;
   this.label = ref.getLabel();
   this.icon = ref.getIcon();
   this.iconCssSprite = ref.getIconCssSprite();
   this.url = ref.getUrl();
   this.name = ref.getName();
   this.path = ref.getPath();
   this.refreshMode = ref.getRefreshMode();
   this.editMode = ref.getEditMode();
   if (this.editMode == 1 && noEditMode) this.editMode = 0;
   this.helpMode = ref.getHelpMode();
   this.configMode = ref.getConfigMode();
   if (this.configMode == 1 && noConfigMode) this.configMode = 0;
   this.minimized = ref.getMinimized();
   this.maximized = ref.getMaximized();
   this.windowSkin = ref.getWindowSkin();
   this.autoRefreshed = ref.getAutoRefreshed();
   this.periodTime = ref.getPeriodTime();
   this.showNumber = ref.getShowNumber();
   this.showType = ref.getShowType();
   this.windowStatus = ref.getWindowStatus();
   this.mode = ref.getMode();
   this.type = ref.getType();
   this.pageRefreshed = ref.getPageRefreshed();
   this.allowJS = ref.getAllowJS();
   this.parameter = ref.getParameter();
 }