<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mersoft Corporation Blog &#187; Uncategorized</title>
	<atom:link href="http://blog.mersoft.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mersoft.com</link>
	<description>Achieve, Compete, and Evolve</description>
	<lastBuildDate>Tue, 25 May 2010 15:37:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Open Office: invisible page break</title>
		<link>http://blog.mersoft.com/2009/12/03/open-office-invisible-page-break/</link>
		<comments>http://blog.mersoft.com/2009/12/03/open-office-invisible-page-break/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 22:42:07 +0000</pubDate>
		<dc:creator>Mandi Zinn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Open Office]]></category>
		<category><![CDATA[page break]]></category>

		<guid isPermaLink="false">http://blog.mersoft.com/?p=346</guid>
		<description><![CDATA[When working on an open office document, I periodically come across an invisible page break (there&#8217;s no blue bar above the new page and I can&#8217;t seem to get rid of it easily). 
This always happens to me when I am using Open Office&#8217;s numbering to outline requirements. The page break is very annoying. When [...]]]></description>
			<content:encoded><![CDATA[<p>When working on an open office document, I periodically come across an invisible page break (there&#8217;s no blue bar above the new page and I can&#8217;t seem to get rid of it easily). </p>
<p>This always happens to me when I am using Open Office&#8217;s numbering to outline requirements. The page break is very annoying. When you try to remove it, it&#8217;ll pull one line of text up even with the line on the previous page. You can add a carriage return to separate the two lines, but you have to reformat the second line.</p>
<p>To get rid of this annoying space, you can start adding carriage returns where the space begins and keep adding them until you have started a new page. Then, you can highlight all the added carriage returns and hit the delete key and it gets rid of the invisible page break.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.mersoft.com%2F2009%2F12%2F03%2Fopen-office-invisible-page-break%2F&amp;linkname=Open%20Office%3A%20invisible%20page%20break"><img src="http://blog.mersoft.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.mersoft.com/2009/12/03/open-office-invisible-page-break/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GWT &#8211; Hide Tabs in TabPanel</title>
		<link>http://blog.mersoft.com/2009/08/27/gwt-hide-tabs-in-tabpanel/</link>
		<comments>http://blog.mersoft.com/2009/08/27/gwt-hide-tabs-in-tabpanel/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 21:14:32 +0000</pubDate>
		<dc:creator>Tom Bollwitt</dc:creator>
				<category><![CDATA[Java/Java Frameworks]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google web toolkit]]></category>
		<category><![CDATA[Goolge Web Toolkit]]></category>
		<category><![CDATA[GWT]]></category>
		<category><![CDATA[GWT-EXT]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://blog.mersoft.com/?p=320</guid>
		<description><![CDATA[I was continuing my work on a sample GWT app and needed the ability to use a Menu with CheckItems to show/hide tabs in a tab panel. Here is how I did it.
Note: This post does not cover the creation of the TabPanel, Toolbar and ToolbarButton with a Menu.
Step 1: Override the Ext.TabPanel. (Note: This [...]]]></description>
			<content:encoded><![CDATA[<p>I was continuing my work on a sample GWT app and needed the ability to use a Menu with CheckItems to show/hide tabs in a tab panel. Here is how I did it.</p>
<p>Note: This post does not cover the creation of the TabPanel, Toolbar and ToolbarButton with a Menu.</p>
<p>Step 1: Override the Ext.TabPanel. (Note: This was just added to a JavaScript file I added to my application. I did not modify the ext-all.js file)</p>
<pre style="border: 1px solid grey; padding: 10px;">Ext.override(Ext.TabPanel, {

  hideTabStripItem : function(item){
    //Don't hide if its the last tab
    var cnt = this.items.length;
    var visibleTabs = 0;
    for(var i = 0; i &lt; cnt; i++ ){
      if(!this.isTabStripItemHidden(i)){
        visibleTabs++;
      }
    }
    if(visibleTabs &gt; 1){
      item = this.getComponent(item);
      var isactive = (item == this.activeTab);	    

      var el = this.getTabEl(item);
      if(el){
        el.style.display = 'none';
          this.delegateUpdates();
      }

      if(isactive){
        //Set the next visible tab active
        var curIndx = 0;
        var indx = 0;
        for(var i = 0; i &lt; cnt; i++ ){
          var tab = this.getComponent(i);
          if(tab.id == item.id){
            curIndx = i;
            break;
          }
        }

        //Check for the next available tab
        for(var i = (curIndx+1); i &lt; cnt; i++ ){
          if(!this.isTabStripItemHidden(i)){
            indx = i;
            break;
          }
        }

        if(indx == 0){
          //Check for a tab before the current one
          for(var i = 0; i &lt; curIndx; i++ ){
            if(!this.isTabStripItemHidden(i)){
              indx = i;
              break;
            }
          }
        }

        this.setActiveTab(indx);
      }
    }
    if(visibleTabs == 1){
      throw "Could not hide the tab";
    }
  },

  unhideTabStripItem : function(item){
    item = this.getComponent(item);
    var el = this.getTabEl(item);
    if(el){
      el.style.display = '';
      this.delegateUpdates();
    }

    this.setActiveTab(item);
  },

  isTabStripItemHidden : function(item){
    item = this.getComponent(item);
    var el = this.getTabEl(item);
    if(el){
      return el.style.display == 'none';
    }
    //return true since it does not exist.
    return true;
  }
});</pre>
<p>Step 2: Create a CheckItem with a listener to show/hide the tab (add it to a ToolbarButton&#8217;s Menu).</p>
<pre style="border: 1px solid grey; padding: 10px;">public CheckItem createTabCheckItem(String menuTitle, final String tabId, final TabPanel tabPanel){
  CheckItem ci = new CheckItem(menuTitle);
  ci.addListener(new CheckItemListenerAdapter() {
    public void onCheckChange(CheckItem item, boolean checked) {
      if (checked) {
        tabPanel.unhideTabStripItem(tabId);
      } else {
        try {
          tabPanel.hideTabStripItem(tabId);
        } catch (Exception e) {
          item.setChecked(true);
        }
      }
    }
  });
  ci.setHideOnClick(false);
  return ci;
}</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.mersoft.com%2F2009%2F08%2F27%2Fgwt-hide-tabs-in-tabpanel%2F&amp;linkname=GWT%20%26%238211%3B%20Hide%20Tabs%20in%20TabPanel"><img src="http://blog.mersoft.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://blog.mersoft.com/2009/08/27/gwt-hide-tabs-in-tabpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
