added profile "inline" menus as a way of extending the user profile display
This commit is contained in:
@@ -31,6 +31,8 @@ public class FrameDialog implements FramedContent, SelfRenderable
|
||||
private Dialog m_dialog;
|
||||
private String m_menu_sel = null;
|
||||
private String m_qid = null;
|
||||
private Object m_content_above = null;
|
||||
private Object m_content_below = null;
|
||||
|
||||
/*--------------------------------------------------------------------------------
|
||||
* Constructors
|
||||
@@ -50,6 +52,23 @@ public class FrameDialog implements FramedContent, SelfRenderable
|
||||
|
||||
} // end constructor
|
||||
|
||||
public FrameDialog(Dialog dialog, Object above, Object below)
|
||||
{
|
||||
m_dialog = dialog;
|
||||
m_content_above = above;
|
||||
m_content_below = below;
|
||||
|
||||
} // end constructor
|
||||
|
||||
public FrameDialog(Dialog dialog, String menu_sel, Object above, Object below)
|
||||
{
|
||||
m_dialog = dialog;
|
||||
m_menu_sel = menu_sel;
|
||||
m_content_above = above;
|
||||
m_content_below = below;
|
||||
|
||||
} // end constructor
|
||||
|
||||
/*--------------------------------------------------------------------------------
|
||||
* Implementations from interface FramedContent
|
||||
*--------------------------------------------------------------------------------
|
||||
@@ -85,7 +104,12 @@ public class FrameDialog implements FramedContent, SelfRenderable
|
||||
|
||||
public void render(SelfRenderControl control) throws IOException, RenderingException
|
||||
{
|
||||
m_dialog.render(control.getTextRender());
|
||||
TextRenderControl ctl = control.getTextRender();
|
||||
if (m_content_above!=null)
|
||||
ctl.renderSubObject(m_content_above);
|
||||
m_dialog.render(ctl);
|
||||
if (m_content_below!=null)
|
||||
ctl.renderSubObject(m_content_below);
|
||||
|
||||
} // end render
|
||||
|
||||
@@ -106,4 +130,28 @@ public class FrameDialog implements FramedContent, SelfRenderable
|
||||
|
||||
} // end setPageQID
|
||||
|
||||
public Object getContentAbove()
|
||||
{
|
||||
return m_content_above;
|
||||
|
||||
} // end getContentAbove
|
||||
|
||||
public void setContentAbove(Object obj)
|
||||
{
|
||||
m_content_above = obj;
|
||||
|
||||
} // end setContentAbove
|
||||
|
||||
public Object getContentBelow()
|
||||
{
|
||||
return m_content_below;
|
||||
|
||||
} // end getContentBelow
|
||||
|
||||
public void setContentBelow(Object obj)
|
||||
{
|
||||
m_content_below = obj;
|
||||
|
||||
} // end setContentBelow
|
||||
|
||||
} // end class FrameDialog
|
||||
|
||||
Reference in New Issue
Block a user