JTextField iframeSRC = new JTextField("") // sets the width of the field within the gui JTextField iframeHeight = new JTextField("900",3) // the figures in quotes are the default values, the last figure JTextField iframeWidth = new JTextField("600",3) // iframeWidth will specify the width of the iframe! Some text fields to hold the information needed, each field has it's own name give it meaningful name, like embedIframe ![]() This next block shows the code for the GUI of a template that will use an iframe to embed another web page in your site, a blog for example. This code is similar to that used by a skin's onload.bsh file to create the gui for any skin, it is wrapped in a Java class that 'extends' jAlbum's JWebPageUI. To create fields and settings within a graphical user interface (GUI) we need to insert some code at the beginning of the page. Start by selecting the template and then double click it to open it. To make an interactive template, like the About.htt in the Turtle skin, we need to make some modifications. The template for the empty-page.htt looks like this (double click to open):Īs it stands, this page can be modified directly by adding your own HTML code just below the line that includes 'keep this'. jAlbum makes it easy to create your own as it comes with an empty template, use the context menu and select "New page" that creates an "empty-page.htt" file. htt, so it can be written with any basic text editor. The page template is just a plain text file saved with the file extension of. ![]() Note, jAbum offers users of site aware skins a default empty page template, if you want to offer your own instead make sure you name the template empty-page.htt. This article will show you how to build a basic template, it does not go in to the detail of styling templates to fit the design of a particular skin. There are many popular Skins that are site aware that come with several page templates. Page templates are files that can be used by skins that support web pages, also know as ' Site aware' skins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |