home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
PluginFrame.java
< prev
next >
Wrap
Text File
|
1998-10-25
|
3KB
|
146 lines
/*
* Copyright 1998 Symantec Corporation, All Rights Reserved.
*/
package com.symantec.itools.vcafe.openapi.pluginapi;
import java.awt.MenuBar;
import java.awt.Rectangle;
import java.io.InputStream;
import java.io.OutputStream;
import symantec.itools.vcafe.plugin.BasePluginFrame;
import com.symantec.itools.vcafe.openapi.VisualObject;
/**
* The API used to integrate a frame window into Visual Cafe
* @see Plugin
*
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public class PluginFrame extends BasePluginFrame
{
/**
* Constructor to create a frame
*/
public PluginFrame()
{
this("");
}
/**
* Create a frame with the given title
*
* @param title The title on the frame
*/
public PluginFrame(String title)
{
super(title);
}
/**
* Enable/Disable docking of a frame. The default implementation doesnot use
* docking.
*
* @param b true for docking window and false for regular window style
*/
public void setDocking(boolean b)
{
docking = b;
super.setDocking(docking);
}
/**
* Set the menu(s) to append to Visual Cafe's menubar. The menu(s) show up only
* when this frame is active.
*
* @param m the menu(s) to add to Visual Cafe's menubar
*/
public void setMergeMenu(MenuBar m)
{
menubar = m;
super.setMergeMenu(menubar);
}
/**
* Get the merge menu(s) being used by this frame
*
* @return m the merge menu(s) being used by this frame
*/
public MenuBar getMergeMenu()
{
return menubar;
}
/**
* Set the help id for this frame. Pressing F1 on an active plug in frame will
* invoke online help displaying the link specified by the given id.
*
* @param id the help id to use for this view
*/
public void setHelpId(int id)
{
helpId = id;
super.setHelpId(id);
}
/**
* Get the help id used by this frame.
*
* @return the help id being used by this frame
*/
public int getHelpId()
{
return helpId;
}
/**
* Frame persistence.
* Save this frame window information such as size/location/docking etc.
*
* @param os the output stream to which data will be written
*/
public void save(OutputStream os)
{
super.save(os);
}
/**
* Frame persistence.
* Restore this frame window information such as size/location/docking etc.
*
* @param is the input stream from which to read the data
*/
public void restore(InputStream is)
{
super.restore(is);
}
/**
* Locates the VisualObject that contains the x,y position.
*
* @param x the <i>x</i> coordinate
* @param y the <i>y</i> coordinate
*
* @return null if there is no visual object containing position.
*/
public VisualObject getVisualObjectAt(int x, int y)
{
return null;
}
/**
* Returns the bounding rectangle of the given VisualObject
*
* @param vo the VisualObject
*/
public Rectangle getVisualObjectBounds(VisualObject vo)
{
return null;
}
private int helpId = 0;
private MenuBar menubar;
private boolean docking = false;
}