* Allow user to control the dashboard panel to be static or collapsible
This commit is contained in:
parent
d9a35cc452
commit
bba40907c3
|
@ -106,18 +106,18 @@ public interface I_PA_DashboardContent
|
|||
/** Get HTML */
|
||||
public String getHTML();
|
||||
|
||||
/** Column name IsCollapsable */
|
||||
public static final String COLUMNNAME_IsCollapsable = "IsCollapsable";
|
||||
/** Column name IsCollapsible */
|
||||
public static final String COLUMNNAME_IsCollapsible = "IsCollapsible";
|
||||
|
||||
/** Set Collapsable.
|
||||
* Flag to indicate the state of dashboard panel (i.e. collapsable or static)
|
||||
/** Set Collapsible.
|
||||
* Flag to indicate the state of the dashboard panel
|
||||
*/
|
||||
public void setIsCollapsable (boolean IsCollapsable);
|
||||
public void setIsCollapsible (boolean IsCollapsible);
|
||||
|
||||
/** Get Collapsable.
|
||||
* Flag to indicate the state of dashboard panel (i.e. collapsable or static)
|
||||
/** Get Collapsible.
|
||||
* Flag to indicate the state of the dashboard panel
|
||||
*/
|
||||
public boolean isCollapsable();
|
||||
public boolean isCollapsible();
|
||||
|
||||
/** Column name Line */
|
||||
public static final String COLUMNNAME_Line = "Line";
|
||||
|
|
|
@ -42,7 +42,7 @@ public class X_PA_DashboardContent extends PO implements I_PA_DashboardContent,
|
|||
super (ctx, PA_DashboardContent_ID, trxName);
|
||||
/** if (PA_DashboardContent_ID == 0)
|
||||
{
|
||||
setIsCollapsable (true);
|
||||
setIsCollapsible (true);
|
||||
// Y
|
||||
setName (null);
|
||||
setPA_DashboardContent_ID (0);
|
||||
|
@ -167,21 +167,21 @@ public class X_PA_DashboardContent extends PO implements I_PA_DashboardContent,
|
|||
return (String)get_Value(COLUMNNAME_HTML);
|
||||
}
|
||||
|
||||
/** Set Collapsable.
|
||||
@param IsCollapsable
|
||||
Flag to indicate the state of dashboard panel (i.e. collapsable or static)
|
||||
/** Set Collapsible.
|
||||
@param IsCollapsible
|
||||
Flag to indicate the state of the dashboard panel
|
||||
*/
|
||||
public void setIsCollapsable (boolean IsCollapsable)
|
||||
public void setIsCollapsible (boolean IsCollapsible)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsCollapsable, Boolean.valueOf(IsCollapsable));
|
||||
set_Value (COLUMNNAME_IsCollapsible, Boolean.valueOf(IsCollapsible));
|
||||
}
|
||||
|
||||
/** Get Collapsable.
|
||||
@return Flag to indicate the state of dashboard panel (i.e. collapsable or static)
|
||||
/** Get Collapsible.
|
||||
@return Flag to indicate the state of the dashboard panel
|
||||
*/
|
||||
public boolean isCollapsable ()
|
||||
public boolean isCollapsible ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsCollapsable);
|
||||
Object oo = get_Value(COLUMNNAME_IsCollapsible);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
|
|
|
@ -232,8 +232,8 @@ public class Desktop extends AbstractUIPart implements MenuListener, Serializabl
|
|||
if(description != null)
|
||||
panel.setTooltiptext(description);
|
||||
|
||||
boolean collapsible = rs.getString(X_PA_DashboardContent.COLUMNNAME_IsCollapsable).equals("Y");
|
||||
panel.setCollapsible(collapsible);
|
||||
String collapsible = rs.getString(X_PA_DashboardContent.COLUMNNAME_IsCollapsible);
|
||||
panel.setCollapsible(collapsible.equals("Y"));
|
||||
|
||||
panel.setBorder("normal");
|
||||
portalchildren.appendChild(panel);
|
||||
|
|
Loading…
Reference in New Issue