mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
CE-604 Add LayoutType field/enum
This commit is contained in:
@ -60,6 +60,8 @@ public class ParentWidgetRenderer extends AbstractWidgetRenderer
|
|||||||
widgetData.setChildWidgetNameList(metaData.getChildWidgetNameList());
|
widgetData.setChildWidgetNameList(metaData.getChildWidgetNameList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
widgetData.setLayoutType(metaData.getLayoutType());
|
||||||
|
|
||||||
return (new RenderWidgetOutput(widgetData));
|
return (new RenderWidgetOutput(widgetData));
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
|
@ -23,6 +23,7 @@ package com.kingsrook.qqq.backend.core.model.dashboard.widgets;
|
|||||||
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import com.kingsrook.qqq.backend.core.model.metadata.dashboard.ParentWidgetMetaData;
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
@ -32,6 +33,7 @@ import java.util.List;
|
|||||||
public class ParentWidgetData extends QWidgetData
|
public class ParentWidgetData extends QWidgetData
|
||||||
{
|
{
|
||||||
private List<String> childWidgetNameList;
|
private List<String> childWidgetNameList;
|
||||||
|
private ParentWidgetMetaData.LayoutType layoutType = ParentWidgetMetaData.LayoutType.GRID;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -87,4 +89,36 @@ public class ParentWidgetData extends QWidgetData
|
|||||||
return (this);
|
return (this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for layoutType
|
||||||
|
*******************************************************************************/
|
||||||
|
public ParentWidgetMetaData.LayoutType getLayoutType()
|
||||||
|
{
|
||||||
|
return (this.layoutType);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Setter for layoutType
|
||||||
|
*******************************************************************************/
|
||||||
|
public void setLayoutType(ParentWidgetMetaData.LayoutType layoutType)
|
||||||
|
{
|
||||||
|
this.layoutType = layoutType;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Fluent setter for layoutType
|
||||||
|
*******************************************************************************/
|
||||||
|
public ParentWidgetData withLayoutType(ParentWidgetMetaData.LayoutType layoutType)
|
||||||
|
{
|
||||||
|
this.layoutType = layoutType;
|
||||||
|
return (this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,16 @@ public class ParentWidgetMetaData extends QWidgetMetaData
|
|||||||
private List<String> childWidgetNameList;
|
private List<String> childWidgetNameList;
|
||||||
private List<String> childProcessNameList;
|
private List<String> childProcessNameList;
|
||||||
|
|
||||||
|
private LayoutType layoutType = LayoutType.GRID;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public enum LayoutType
|
||||||
|
{
|
||||||
|
GRID,
|
||||||
|
TABS
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
@ -137,4 +147,36 @@ public class ParentWidgetMetaData extends QWidgetMetaData
|
|||||||
return (this);
|
return (this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Getter for layoutType
|
||||||
|
*******************************************************************************/
|
||||||
|
public LayoutType getLayoutType()
|
||||||
|
{
|
||||||
|
return (this.layoutType);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Setter for layoutType
|
||||||
|
*******************************************************************************/
|
||||||
|
public void setLayoutType(LayoutType layoutType)
|
||||||
|
{
|
||||||
|
this.layoutType = layoutType;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Fluent setter for layoutType
|
||||||
|
*******************************************************************************/
|
||||||
|
public ParentWidgetMetaData withLayoutType(LayoutType layoutType)
|
||||||
|
{
|
||||||
|
this.layoutType = layoutType;
|
||||||
|
return (this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user