Search
WorkbookView Class
Remarks See Also
 






Represents a control that displays Workbook objects.

Namespace: com.mindfusion.spreadsheet
Package: com.mindfusion.spreadsheet

 Syntax

Java  Copy Code

public class WorkbookView extends JComponent

 Remarks

The WorkbookView control can display Workbook objects in an environment similar to that of Microsoft Excel. The following image illustrates a WorkbookView instance.

The workbook to display in the view is specified through the Workbook property. The currently active worksheet can be get or set through the ActiveWorksheet property. The active cell inside the worksheet is available through the ActiveCell property. The Selection property provides access to a Selection object, which can be used to get or set the selected cells and objects in the active worksheet.

The tabs representing the worksheets in the workbook can be customized through several properties. The alignment of the tabs is set through the TabAlignment property. The ShowTabs, ShowTabCloseButtons, ShowTabNavigationButtons, and ShowCreateNewTab properties can be used to show or hide the tab panel, the close buttons inside the individual tabs, the navigation buttons, and the button that can be used to create new worksheets respectively. The AllowTabReorder property specifies whether the tabs can be reordered interactively by dragging them with the mouse. Finally, the AllowTabEdit property indicates whether worksheets can be renamed in-place by double clicking on their respective tab.

The view provides many events that can help track, validate and respond to user actions inside the view, including worksheetAdded, activeCellChanged, selectionChanged, objectClicked, and so on.

 Inheritance Hierarchy

java.lang.Object
    java.awt.Component
        java.awt.Container
            javax.swing.JComponent
                com.mindfusion.spreadsheet.WorkbookView

 See Also